Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Switch Workbooks

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using ALT-TAB to Switch Between Spreadsheets roadkill Excel Discussion (Misc queries) 3 October 12th 07 04:52 PM
Copy/ move selected data from workbooks to seperate worksheets or workbooks Positive Excel Worksheet Functions 1 August 30th 07 04:54 PM
Using alt-tab to switch between Excel workbooks under the same session Kjetil Excel Discussion (Misc queries) 0 June 22nd 06 03:39 PM
Display 2 formulas from source workbooks to destination workbooks Excel_seek_help Excel Discussion (Misc queries) 4 April 27th 06 08:13 PM
Switch between workbooks Newbie Excel Programming 1 January 7th 04 09:34 PM


All times are GMT +1. The time now is 05:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"