![]() |
|
#1
|
||||
|
||||
![]() I take it you added the macro to the Word document, not to the Excel workbook. The macro runs automatically when you open the document - no user action is required. For it to work with the macro as coded, though, your Word document must have a dropdown content control titled 'ID' - though you could use a different title (provided you use the same title in the document and in the code). Note also that the macro looks for a workbook named 'Workbook Name' (of all things) in your 'Documents' folder. You can change both the filename and folder.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]() Quote:
This is what i did: The files are in my documents folder and i've changed the location on the macro - created excel file (xlsx) and put in the first columm 10 names - created doc file and went to macros, create new and past the code above, changing the StrWkBkNm to match my file. - created a new dropdown and titled it "ID". But nothing happens, i've close the document and open again the dropdown "ID" is empty. Do you know what i'm doing wrong? I need it a lot. Thanks |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Hans L | Windows | 2 | 08-16-2015 05:33 PM |
keyboard shortcut | ilor | OneNote | 1 | 11-13-2014 02:48 PM |
disable ctrl+space excel keyboard shortcut | melvinjn | Excel | 2 | 11-27-2013 04:11 AM |
![]() |
Jennifer Murphy | Word VBA | 1 | 01-06-2013 07:38 PM |
Outlook Keyboard shortcut | sostrow28 | Outlook | 1 | 12-10-2010 05:57 AM |