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

إضافة رقم متسلسل الي ملف وورد مع فتحه


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

مرفق مثال

و هو يعتمد علي عمل اشارة مرجعية فى الخلية التي تسبق الرقم

ثم التحرك منها الي الرقم و إضافة واحد عليه

و لم يتم التحرك الي الرقم مباشرة لأن الاشارة المرجعية ستضيع فى هذه الحالة اذا تم تغيير القيمة

Private Sub Document_Open()

mm

End Sub


-----

Sub mm()

Selection.GoTo What:=wdGoToBookmark, Name:="m1"

Selection.MoveRight Unit:=wdCell

    Myval = Selection.Text

    Myval = CInt(Myval) + 1

    Selection.TypeText Text:=Myval

End Sub

addoneOnOpen.rar

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

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