Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Set an active window in VB
At the end of a macro I want to set a document that is already open to the active window. Whats the VB code for this?
|
#2
|
|||
|
|||
jcarson83 schrieb:
At the end of a macro I want to set a document that is already open to the active window. Whats the VB code for this? Try this: === Start of Sub === Dim docTest As Word.Document Dim docOtherDoc As Word.Document Set docTest = Documents.Add Selection.TypeText "Hallo this is the first doc." Set docOtherDoc = Documents.Add Selection.TypeText "This is the second doc." '** Activate the first doc: docTest.Activate === End of Sub Regards P- |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Word Window Opening Size in Internet Explorer | Microsoft Word Help | |||
How to display multiple docs in a single word window? | Microsoft Word Help | |||
SAVE AS and EXPLORER WINDOW | Microsoft Word Help | |||
print window appear behind the active word doc | Microsoft Word Help | |||
maximized window not filling screen | Microsoft Word Help |