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

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

قام بنشر

السلام عليكم

احتاج كود .....عند الضغط على زر يستدعي اكواد ازرار اخرة

مثل
 



Private Sub CommandButton1_Click()    زر
Private Sub CommandButton2_Click()   زر اخر

احتاج امر لتنفيذ اوامر زرين عند ضغط على زر جديد ثالث

وشكرا


 

قام بنشر

Use this macro in the same module

Sub Test1()
    Call CommandButton1_Click
    Call CommandButton2_Click
End Sub

 

If you need to execute the commands away from their module you can use Application.Run

Sub Test2()
    Application.Run "Sheet1.CommandButton1_Click"
    Application.Run "Sheet1.CommandButton2_Click"
End Sub

 

  • Like 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