![]() |
#6
|
||||
|
||||
![]()
Hi SaneMan,
If you compared the output from the macro I posted to the DocVariables you're trying to work with, you'd see that none of them exist! It's not a matter of what's on the userform, it's a matter of what DocVariables exit in the underlying document. Whatever document you're running the code against needs to have the DocVariables in it too - and, presumably, you'll need to create them if they don't.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word doc bug when closing from userform command button click macro | Joe Patrick | Word | 1 | 07-05-2011 08:53 PM |
![]() |
SaneMan | Word VBA | 5 | 04-01-2011 03:11 PM |
![]() |
Dolfie_twee | Word VBA | 1 | 06-22-2010 07:54 AM |
[Word 2003] Macro's and a UserForm | xanuex | Word VBA | 0 | 10-19-2009 05:42 AM |
How to link text from one document to another | nospamforyou | Word | 0 | 10-09-2008 09:14 AM |