![]() |
|
#1
|
||||
|
||||
![]() I can't see how that could be possible if you're using the variables as defined in the posted code - StrNm & StrPth are quite clearly defined.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]() Quote:
1) Opened the word file that contains the footer i want. 2) Pressed Alt+F11, and choose the file from left panel. 3) From "Insert UseForm" icon, i choose module. 4) I paste the code you wrote here. 5) I pressed F5. 6) Opened a popup window to choose the folder i want and i choose it. 7) After pressing OK button from popup window i get the error i told you. |
#3
|
|||
|
|||
![]()
Ok an update...
I put the file that has the footer i need outside the folder i want the word files to be changed (i put it in my desktop because it was inside the folder i wanted to work with). I run the macro again and now i get another error: Run-time error '91: Object variable or With block variable not set. When i press debug i got the following line with yellow background: With .Sections.First.Footers(wdHeaderFooterPrimary).Ran ge |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Batch replace Header and Footer and QuickStyle | Artmax | Word VBA | 14 | 01-11-2024 05:36 PM |
Batch change the font style in multiple word files inside folder and subfolders | kalagas | Word VBA | 11 | 10-05-2023 05:13 AM |
![]() |
Edszx | Word VBA | 2 | 05-27-2019 11:16 PM |
I have 20 page word document with a footer. Can i change page # 10 footer only? | aligahk06 | Word | 2 | 10-25-2017 04:53 AM |
![]() |
patidallas22 | Word VBA | 2 | 03-09-2012 08:14 AM |