![]() |
#1
|
|||
|
|||
![]()
I recorded a macro to number pages. it includes:
Application.Templates( _ "C:\Users\gcpri\AppData\Roaming\Microsoft\Docu ment Building Blocks\1033\16\Built-In Building Blocks.dotx" _ ).BuildingBlockEntries("Brackets 1").Insert Where:=Selection.Range, _ RichText:=True When I run the macro it highlights the above in yellow and says: "Run-time error '5941'. The requested member of the collection does not exist." The cursor stops in the document in the footnote where the page number is to be inserted. I have recorded the macro several times and occasionally the VB Editor refers to the building blocks but it does not stay there when I record other macros. Allied to this is, when I record a macro can I allocate a project (or create a project) to contain the macro. The online help suggests that I have to go to the editor, start a new module and then cut and paste the code into that module. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Numbering Page in Center of Page in Word | AdmirableWizard | Word | 3 | 04-26-2022 10:55 AM |
Word 2019 & Page Numbering | PapaTom | Word | 18 | 12-13-2019 08:02 AM |
![]() |
DarenKF | Word | 2 | 11-08-2017 01:43 AM |
![]() |
SDwriter | Word | 12 | 10-25-2017 06:56 AM |
![]() |
dickmill | Word | 10 | 01-11-2016 04:10 PM |