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

استفسار


kmaal

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

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

ممكن كيفية اختصار هذا الكود

If ComboBox1.Value = "المختص" Then

documents.Open "C:\test\b.doc"

ActiveDocument.Tables(1).Cell(Row:=1, Column:=1).Range.Select

Selection.Copy

ActiveDocument.Close savechanges:=False

ActiveDocument.Tables(1).Cell(Row:=1, Column:=1).Range.Select

Selection.PasteAndFormat Type:=wdFormatPlainText

End If

مع العلم أن قائمة الكمبوبوكس أكثر من 16 عنصر ، والمعادلة الموضحة شغالة تمام تنسخ من خلية من جدول ورد من ملف b إلى خلية في جدول ورد آخر للملف A حسب شرط قائمة الكمبوبوكس .

والمطلوب كيفية اختصار لهذا الكود ، انا أقل من مبتدئ جداً جداً تحت الصفر ،

يعني كيف نعمل المتغير .

مع خالص الشكر ،،،

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

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