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

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

قام بنشر

السلام عليكم

ضع هذه الاكواد في الفورم

UserForm2


Dim sPath As String


Private Sub CommandButton1_Click()

On Error GoTo 1

If Val(Application.Version) > 11 Then

    Workbooks.Open Filename:=sPath & "1.xlsx"

End If

1:

End Sub


Private Sub CommandButton2_Click()

On Error GoTo 1

If Val(Application.Version) > 11 Then

    Workbooks.Open Filename:=sPath & "2.xlsx"

End If

1:

End Sub


Private Sub CommandButton3_Click()

On Error GoTo 1

If Val(Application.Version) > 11 Then

    Workbooks.Open Filename:=sPath & "3.xlsx"

End If

1:

End Sub


Private Sub CommandButton4_Click()

On Error GoTo 1

If Val(Application.Version) > 11 Then

    Workbooks.Open Filename:=sPath & "4.xlsx"

End If

1:

End Sub


Private Sub UserForm_Activate()


sPath = ThisWorkbook.Path

If Right(sPath, 1) <> Application.PathSeparator Then

    sPath = sPath & Application.PathSeparator

End If

'''''''''''''''''''''''


End Sub

انشئ حساب جديد او قم بتسجيل دخولك لتتمكن من اضافه تعليق جديد

يجب ان تكون عضوا لدينا لتتمكن من التعليق

انشئ حساب جديد

سجل حسابك الجديد لدينا في الموقع بمنتهي السهوله .

سجل حساب جديد

تسجيل دخول

هل تمتلك حساب بالفعل ؟ سجل دخولك من هنا.

سجل دخولك الان
×
×
  • اضف...

Important Information