Professional Documents
Culture Documents
الاكواد المستخدمة فى الفورم
الاكواد المستخدمة فى الفورم
End With
Dim i As String
i = TextBox1.Text
FileCopy fpath, "C:\Picture\" & i & ".jpg"
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
ComboBox1.Text = ""
ComboBox2.Text = ""
ComboBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
End Sub
**************************************************************************
����� ��������
Private Sub CommandButton4_Click()
Dim x As Long
Dim y As Long
x = Sheets("Sheet1").Range("B" & Rows.Count).End(xlUp).Row
For y = 2 To x
If Sheets("Sheet1").Cells(y, 2).Text = TextBox6.Value Then
Sheets("Sheet1").Cells(y, 2) = TextBox1.Text
Sheets("Sheet1").Cells(y, 3) = TextBox2.Text
Sheets("Sheet1").Cells(y, 4) = TextBox3.Text
Sheets("Sheet1").Cells(y, 5) = ComboBox1.Text
Sheets("Sheet1").Cells(y, 6) = ComboBox2.Text
Sheets("Sheet1").Cells(y, 7) = ComboBox3.Text
Sheets("Sheet1").Cells(y, 8) = TextBox4.Text
Sheets("Sheet1").Cells(y, 9) = TextBox5.Text
End If
Next y
End Sub
***********************************************************************************
��� ������ ����
End If
Next y
End Sub
***********************************************************************************
*******
��� ��������
Unload Me
Application.Visible = True
Sheets("sheet2").Activate
***********************************************************************************
********
����� ������
For y = 2 To x
TextBox1.Text = Sheets("Sheet1").Cells(y, 2)
TextBox2.Text = Sheets("Sheet1").Cells(y, 3)
TextBox3.Text = Sheets("Sheet1").Cells(y, 4)
ComboBox1.Text = Sheets("Sheet1").Cells(y, 5)
ComboBox2.Text = Sheets("Sheet1").Cells(y, 6)
ComboBox3.Text = Sheets("Sheet1").Cells(y, 7)
TextBox4.Text = Sheets("Sheet1").Cells(y, 8)
TextBox5.Text = Sheets("Sheet1").Cells(y, 9)
End If
Next y
End Sub
*********************************************************************************
End Sub
***********************************************************************************
******
��� ����� ������ ����
Sub RectangleDiagonalCornersRounded1_Click()
Dim x As Long
Dim y As Long
x = Sheets("Sheet1").Range("B" & Rows.Count).End(xlUp).Row
For y = 2 To x
If Sheet2.Range("B3").Value = Sheet1.Cells(y, "B").Value Then
Dim i As Picture
Dim j As String
On Error Resume Next
With Range("C10")
Set i = ActiveSheet.Pictures.Insert(j)
i.Height = 105
i.Width = 95
i.Top = .Top
i.Left = .Left
i.Placement = xlMoveAndSize
End With
End If
End Sub
***********************************************************************************
**********