![]() |
|
#6
|
||||
|
||||
|
Have a look at the msgbox. It says the code is looking for an invalid path because it includes the C:\Users\YongX twice and it is also looking inside a folder on the desktop which is not what was previously specified.
Have a closer look at the code you are trying to implement and work out where those two parts get added together. We aren't trying to do your work for you - you have to make an effort to understand the code supplied a little bit too. Step through the code one line at a time by pressing F8. Hover your mouse over the variables as the lines execute and pay attention to the values that those string variables have as the macro progresses. When you notice a problem, stop the code and fix it before trying again.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Field Code: Show a value only if bookmark is not empty
|
Cosmo | Word | 7 | 08-24-2018 01:46 PM |
VBA Code to Access Building Block Template in Word 2013 Startup folder
|
rdross51 | Word VBA | 2 | 06-01-2016 07:05 PM |
| Find Bookmark, move to bookmark, execute code, repeat | raymm3852 | Word VBA | 10 | 04-15-2016 06:21 PM |
VBA Code in template does not run in new document
|
highrise955 | Word VBA | 4 | 03-06-2016 04:48 PM |
Visual basic code for Word 2003 template
|
KateAus | Word VBA | 4 | 09-09-2012 08:40 PM |