Open two tiled windows on workbook_open

  • Thread starter Thread starter pdberger
  • Start date Start date
P

pdberger

Good afternoon.

I'm creating a workbook that will automatically open two windows (one for
reference data that I don't want to scroll along with the other) to be used
by several users. The complicating factor is that each user will name
his/her copy differently, so I don't know in advance the name (s)he'll give
it. I've created a string variable called strWorkbookName, but can't figure
out how to get it into a variation of:

Windows("Book2:1").Activate

At least I think that's the right direction, and the statement with which
the problem lies. Any help would be appreciated.
 
Dim strWorkbookName As Workbook
Set strWorkbookName = "C:\My Documents\My File.xls"
'or
'Set strWorkbookName = Workbooks.Open("C:\My Documents\My File.xls")

strWorkbookName.Activate

Maybe this will help.

Alan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top