View Single Post
 
Old 12-05-2013, 08:05 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by omahadivision View Post
I had to remove "ThisWorkbook." from MacroName and then it ran like a charm!
Whilst it might work well enough without "ThisWorkbook.", you still should reference the workbook from which the code is to be run, so you don't run into problems when multiple workbooks are open and: (a) the macro you want to run isn't in the active workbook; and/or (b) there is more than one sub of the same name in the different workbooks.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote