سؤال

أنا أتساءل عما إذا كان بإمكاني القيام بما يلي:

  1. ابحث عن إشارة مرجعية داخل وثيقة
  2. حدد رقم الصفحة هذه الإشارة المرجعية على
  3. أدخل مستند آخر قبل الصفحة المحددة

    الرمز الخاص بي حتى الآن: giveacodicetagpre.

    أي مساعدة موضع تقدير كبير، شكرا.

هل كانت مفيدة؟

المحلول

It's best not to think in terms of pages, which ironically is an ill defined concept in Word. But if you're inserting material, you have to insert it at specific location anyhow. Since you find a range for the bookmark, and it looks like you want to insert after the bookmark, use the following:

MasterDoc.Bookmarks("TheBookmark").Range.InsertAfter "XXX"

Also, you could remove bookmarkRng and pageNo, then, unless you need them later for some reason.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top