I have several documents open. I need to reference bookmarks and tables in any document from any other document. For example, I have six documents open. From doc #2 I want to reference bookmarks and tables in doc #5. From doc #3 reference bookmarks in doc #1 and tables in doc #4. Macro code can be executed from any document.
Here is where I have got to:
This allows me to loop through open documents and get window names
Frames = Stardesktop.Frames
For i = 0 to Frames.Count - 1
Frame = Frames.getByIndex(i)
print Frame.Title
' code here to make this doc active
next i
Am I one the right path using Stardesktop.Frames? What code will make the document the active one?
Is there a better way?
All advice and assistance greatly appreciated