![]() |
#1
|
|||
|
|||
![]()
Assume that I am working in Word 2010, and
I have two Word documents open, Doc1 and Doc2, and I am editing Doc1. Sometimes, when I am working in Doc1, and I click on the button that triggers the macro below "subCurlyQuots", the macro will operate on Doc2 instead of Doc1. How can I make sure that the macro operates on Doc1 instead of Doc2? Any help would be much appreciated. Thanks, Marc Code:
Last edited by macropod; 10-31-2012 at 08:54 PM. Reason: Added code tags & formatting |
#2
|
||||
|
||||
![]()
Your code should run against whichever document is active at the time. That said, it could be reduced to:
Code:
Sub subCurlyQuots() PS: When posting code, please use the code tags. They're on the 'Go Advanced' tab.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
kaetsdz | Word | 3 | 08-08-2012 07:24 PM |
![]() |
Taylor | Word | 3 | 10-09-2011 12:39 AM |
![]() |
Zakhary | Word | 1 | 05-22-2011 01:24 PM |
Date pop-up window | Roshan Hanief | Word | 0 | 04-23-2011 04:16 AM |
![]() |
sparemejava | Word | 9 | 02-06-2011 03:21 PM |