Switch Workbooks

R

Ronbo

I am looking for a statement that will allow me to switch
between open workbooks using a string variable with a
temp name. What I am trying to use, but can not get to
work is;

tmpName2 = Left(ActiveWorkbook.Name, Len
ActiveWorkbook.Name) - 13)

Windows("tmpName2.xls").Activate

Any suggestions would be very much appreciated
 
B

Bob Phillips

Why not just use

tmpName2 = ACtiveworkbook.Name

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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

Similar Threads

ADD SPACES 13
Opening a File 0
Insert Spaces 1
Mail Merge Switch - Dollars to Words 0
Probelm with Code !!!!!!!!!!!!!!!!! 1
Automation Error. What is this? 2
Set workbook name not working 4
Copy every worksheet 3

Top