Separating Workbooks

S

smandula

I have VBA code calling a second Workbook

Private Sub Workbook_Open()
Workbooks.Open ("C:\Documents and Settings\Owner\My Documents
\MicroXSLX.xlsm")
End Sub

However, I can not visually separate the two workbooks, as they
overlap each other.

The two workbook icons are both visible in the Task bar.

I would like to see both workbooks separately.

With Thanks
 
G

Gord Dibben

Stick this macro in a General Module in workbook one

Sub Tile_Open()
Windows.Arrange ArrangeStyle:=xlVertical
End Sub

Add a Call in your opening code

Private Sub Workbook_Open()
Workbooks.Open ("C:\Documents and Settings\Owner\My Documents
\MicroXSLX.xlsm")
Call Tile_Open
End Sub



Gord
 
S

smandula

Thanks --- works very well.

Not to be ungratefull!

Is it possible to have two separate individual excel's?

Again with Thanks
 
G

Gord Dibben

It is possible to have two separate instances of Excel running.

Open one instance and load a workbook then open another instance and
open a workbook in that.

NOTE: the separate instances cannot communicate with each other.


Gord
 
S

smandula

Hi Gord,


What I was looking for does not exist, except
by manual doing.

Your solution is the most elegant.

Many Thanks again.
 

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

Top