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

HI gan
I used recorder to record macro. I Switch from the active WB to another WB and then want to switch back. How do I make this generic to go back to previous workbook. The recorder is specific to the files that I had open at the time

Windows("Book3").Activat
My Cod
Windows("040403.xls").Activat

Book3 is a good reference but I need the 040403 reference to be (Back to previous Window

Thank

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Active workbook


Windows("Book3").Activate
Set origWB = ActiveWorkbook
My Code
Windows("040403.xls").Activate

origWB.Acrtiate

--

HTH

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

"Jimmy" wrote in message
...
HI gang
I used recorder to record macro. I Switch from the active WB to another

WB and then want to switch back. How do I make this generic to go back to
previous workbook. The recorder is specific to the files that I had open at
the time.

Windows("Book3").Activate
My Code
Windows("040403.xls").Activate

Book3 is a good reference but I need the 040403 reference to be (Back to

previous Window)

Thanks



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
copy worksheet from closed workbook to active workbook using vba mango Excel Worksheet Functions 6 December 9th 04 07:55 AM
How do I make an open workbook the active workbook Don Guillett[_4_] Excel Programming 0 December 30th 03 04:28 PM
Copy from active workbook to new workbook. Ron[_15_] Excel Programming 4 November 18th 03 06:31 PM
Copy Modules from One workbook to Active Workbook Jim Gifford Excel Programming 1 November 18th 03 12:30 PM
Preventing opening workbook inside active workbook. Serge[_4_] Excel Programming 2 November 4th 03 07:51 PM


All times are GMT +1. The time now is 08:51 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"