اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

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

قام بنشر

هذه الماكرو للزر الاول

Option Explicit

Sub Sheet1_2_3()
Dim x
x = Application.InputBox("Choose sheet from 1,2,3 to select", "Excel tel you", 1)
Select Case x
   Case Is = 1
        Sheets("1").Select
    
    Case Is = 2
        Sheets("2").Select
   
    Case Is = 3
        Sheets("3").Select
      
    Case Else
   MsgBox "you select Invalide number"
End Select
End Sub

و هذه للزر الثّاني

Sub Sheet_B_D()
Dim x
x = Application.InputBox("choose sheet from B,D to select", "Excel tel you", "B")
x = UCase(x)
Select Case x
   Case Is = "D"
        Sheets("D").Select
    
    Case Is = "B"
        Sheets("B").Select
   
    Case Else
   MsgBox "you select Invalide Name"
End Select
End Sub

 

 

  • Thanks 1

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