dj44
10-21-2016, 05:04 PM
Hi folks,
How is everyone doing,:)
Now I thought this was a easy thing to do as it worked in one macro but then it stopped and ive been in a conundrum.
Lets say im in Doc1 - and my macro is in Doc1,
I simply want to make Doc2 my active document
Sub SwitchWindowsMacro()
'Documents("Doc2.docx").Activate
'Document("Doc2.docx").Activate
'Dim oDoc = ActiveDocument
Windows("Doc2").Activate
Selection.Font.Color = 7662449
Selection.Font.Size = 22
End Sub
thats a simpke example
How can i activate and make the Doc2 my active document so the macro can continue to do it's said proposed job?
thank you for your coding expertise on this matter
How is everyone doing,:)
Now I thought this was a easy thing to do as it worked in one macro but then it stopped and ive been in a conundrum.
Lets say im in Doc1 - and my macro is in Doc1,
I simply want to make Doc2 my active document
Sub SwitchWindowsMacro()
'Documents("Doc2.docx").Activate
'Document("Doc2.docx").Activate
'Dim oDoc = ActiveDocument
Windows("Doc2").Activate
Selection.Font.Color = 7662449
Selection.Font.Size = 22
End Sub
thats a simpke example
How can i activate and make the Doc2 my active document so the macro can continue to do it's said proposed job?
thank you for your coding expertise on this matter