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

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

قام بنشر

ضع هذا الكود في combobox1


Private Sub ComboBox1_Click()

If Me.ComboBox1.Value <> Empty Then Me.ComboBox2.Value = "OK"

III = 4

Do Until ورقة1.Cells(III, "a").Text = ""

    If Me.ComboBox1.Text = ورقة1.Cells(III, "a").Text Then

	    Cells(III, "a").Activate

	   Me.TextBox2 = ActiveCell.Offset(0, 1).Text

	   Me.TextBox3 = ActiveCell.Offset(0, 2).Text

	   Me.TextBox4 = ActiveCell.Offset(0, 3).Text

	   Me.TextBox5 = ActiveCell.Offset(0, 4).Text

	    Exit Sub

    End If

    III = III + 1

Loop

MsgBox ("!!! عفوا .. اختر اسما الذى تبحث عنه")

Me.ComboBox1.SetFocus

ComboBox2.Value = Empty

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.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information