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

كيف اجعل الفورم وجميع مكوناته من اليمين الى اليسار (عنوان معدل)


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

السلام عليكم ورحمة الله وبركاته

اخواني الاعزاء طلبي منكم هو شرح خصائص الفورم في اكسيل وبالاخص كيف اجعل الفورم وجميع مكوناته من اليمين الى اليسار

في الخصائص او عن طريق الكود

وشكرا جزيلا لكم

رابط هذا التعليق
شارك

اخي الحبيب انا اقصد كود الاستاذ كيماس الذي شرحه في يوتيوب في هذا الرابط

ولكن الكود لم يشرح جيدا في الفيديو واريده مكتوبا حتى استطيع الاستفاده منه

وجزاك الله خيرا

رابط هذا التعليق
شارك

مرحبا أخي الكريم

اكتب الكود التالي


Private Sub UserForm_Initialize()

Dim RR As Control

For i = 1 To 5

Set RR = Me.Controls.Add("forms.TextBox.1", "TextBox" & i, True)

With RR

.Left = 80: .Top = 10 + (i * 20): .Width = 60: .Height = 15:

.Text = Cells(2, i)

End With

Next


Dim LL As Control

For s = 1 To 5

Set LL = Me.Controls.Add("forms.Label.1", "Label" & s, True)

With LL

.Left = 10: .Top = 10 + (s * 20): .Width = 60: .Height = 15: .Visible = True: .BackColor = &H80FF80  ' &H80000008

.Caption = Cells(1, s)

End With

Next s

End Sub


رابط هذا التعليق
شارك

غير الكود السابق بهذا الكود


Private Sub UserForm_Initialize()

Dim RR As Control

For i = 1 To 10

Set RR = Me.Controls.Add("forms.TextBox.1", "TextBox" & i, True)

With RR

.Left = 80: .Top = 10 + (i * 20): .Width = 60: .Height = 15:

.Text = Cells(2, i)

End With

Next

Dim LL As Control

For s = 1 To 10

Set LL = Me.Controls.Add("forms.Label.1", "Label" & s, True)

With LL

.Left = 10: .Top = 10 + (s * 20): .Width = 60: .Height = 15: .Visible = True: .BackColor = &H80FF80  ' &H80000008

.Caption = Cells(1, s)

End With

    With Me

	    .ScrollBars = fmScrollBarsVertical

	    .ScrollHeight = .InsideHeight * s / 5

	    .ScrollWidth = .InsideWidth * 9

    End With

Next s

End Sub

رابط هذا التعليق
شارك

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.

×
×
  • اضف...

Important Information