اذهب الي المحتوي
أوفيسنا

الردود الموصى بها

  • أفضل إجابة
قام بنشر

In worksheet module

Private Sub Worksheet_Change(ByVal Target As Range)
    Dim x
    If Target.Address = "$A$1" Then
        Columns("B:AT").Hidden = False
        If Target.Value = Empty Then Target.Select: Exit Sub
        x = Application.Match(Target.Value2, Rows(3), 0)
        If Not IsError(x) Then
            Columns("B:AT").Hidden = True
            Columns(x).Hidden = False
        End If
        Target.Select
    End If
End Sub

 

  • Like 2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information