PC Review


Reply
Thread Tools Rate Thread

Activate previous Workbook

 
 
excelnut1954
Guest
Posts: n/a
 
      20th Apr 2007
I've been looking in here, and can't find what I'm looking for.
So.....

A macro within a workbook Original List 4-20-07.xls, will open up
anothe workbook,
Second List.xls. So, both will be opened with Second List.xls being
active. What I'm looking for is the command to switch back and
activate
Original 4-20-07.xls On the surface, it looks easy, but that
workbook name changes each day. So the macro will have to account for
the name change each day.

Isn't there a simple Previous command to switch it back to Original
*.xls ? I tried the wildcard, but it didn't work.

Thanks,
J.O.

 
Reply With Quote
 
 
 
 
Norman Jones
Guest
Posts: n/a
 
      20th Apr 2007
Hi J,

Try :

ThisWorkbook.Activate


---
Regards,
Norman



"excelnut1954" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I've been looking in here, and can't find what I'm looking for.
> So.....
>
> A macro within a workbook Original List 4-20-07.xls, will open up
> anothe workbook,
> Second List.xls. So, both will be opened with Second List.xls being
> active. What I'm looking for is the command to switch back and
> activate
> Original 4-20-07.xls On the surface, it looks easy, but that
> workbook name changes each day. So the macro will have to account for
> the name change each day.
>
> Isn't there a simple Previous command to switch it back to Original
> *.xls ? I tried the wildcard, but it didn't work.
>
> Thanks,
> J.O.
>



 
Reply With Quote
 
excelnut1954
Guest
Posts: n/a
 
      20th Apr 2007
On Apr 20, 1:56 pm, "Norman Jones" <normanjo...@whereforartthou.com>
wrote:
> Hi J,
>
> Try :
>
> ThisWorkbook.Activate
>
> ---
> Regards,
> Norman
>
> "excelnut1954" <excelnut1...@yahoo.com> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > I've been looking in here, and can't find what I'm looking for.
> > So.....

>
> > A macro within a workbook Original List 4-20-07.xls, will open up
> > anothe workbook,
> > Second List.xls. So, both will be opened with Second List.xls being
> > active. What I'm looking for is the command to switch back and
> > activate
> > Original 4-20-07.xls On the surface, it looks easy, but that
> > workbook name changes each day. So the macro will have to account for
> > the name change each day.

>
> > Isn't there a simple Previous command to switch it back to Original
> > *.xls ? I tried the wildcard, but it didn't work.

>
> > Thanks,
> > J.O.- Hide quoted text -

>
> - Show quoted text -


Thanks, Norman.
Too easy. I'm not going to figure anything out that's too easy.
Thanks again.
J.O.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I open an Excel Workbook from Outlook macro and activate that workbook? Damil4real Microsoft Excel Discussion 1 25th Jan 2011 04:56 AM
how to Activate the previous Open, workbook..? =?Utf-8?B?YWNlZ2Fw?= Microsoft Excel Programming 3 25th Jun 2006 04:14 PM
how would activate the previous sheet in macro =?Utf-8?B?Vmlja3k=?= Microsoft Excel Misc 1 27th May 2006 09:18 AM
Workbook.Activate / Window.Activate problem Tim Microsoft Excel Programming 3 3rd Feb 2006 11:38 PM
Calling a Personal.XLS Sub from anther workbook's 'This Workbook' Sheet Activate Jack Gillis Microsoft Excel Discussion 2 21st Mar 2005 11:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:38 PM.