View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default Switch Workbooks

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)

"Ronbo" wrote in message
...
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