![]() |
#2
|
||||
|
||||
![]()
Just at first glance (I haven't looked in depth) I notice you're using late binding which could mean that many of the Word enumerations (eg. wdActiveEndAdjustedPageNumber) won't be recognised by Excel.
Either set a (temporary if you like) reference to Word in the VBE's Tools|References dialogue box: (see pic below) or you'll need to find the value of each (and recognise them in the first place!) and replace them with their numerical value (1 in the case of wdActiveEndAdjustedPageNumber) The line in your macro: On Error Resume Next is going to hide many errors from you, disable it and step through the code with F8 on the keyboard so that you can see which lines are going wrong. |
Tags |
word vba |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
mars1886 | Word VBA | 15 | 03-30-2022 06:56 AM |
@Macropod Macro VBA LINK Fields Relative Paste Special as Image from Excel word bug | ggll | Word | 0 | 09-18-2021 11:48 PM |
![]() |
gnoles | Mail Merge | 1 | 08-30-2019 07:25 AM |
Acronym lister and definition checker for Microsoft Word | gwez | Word VBA | 1 | 06-13-2015 04:00 AM |
Adapting a line shape | NikkiB | Word | 4 | 03-18-2013 08:45 AM |