PC Review


Reply
Thread Tools Rate Thread

Activate sheet in another workbook by its code name

 
 
AshMorK
Guest
Posts: n/a
 
      26th Sep 2008
Is it possible to activate a sheet in workbook1 by a procedure written in
workbook2 by its code name??
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      26th Sep 2008
With Workbooks("Some Other Book.xls")
.Worksheets(CStr(.VBProject.VBComponents("TheSheetCodeName").Properties("Name"))).Activate
End With


--
__________________________________
HTH

Bob

"AshMorK" <(E-Mail Removed)> wrote in message
news:8A0A2846-D214-42FF-86E2-(E-Mail Removed)...
> Is it possible to activate a sheet in workbook1 by a procedure written in
> workbook2 by its code name??



 
Reply With Quote
 
AndyM
Guest
Posts: n/a
 
      27th Sep 2008
Workbooks("Book2").Sheets("Sheet1").Activate

This will activate the workbook as well.

"AshMorK" wrote:

> Is it possible to activate a sheet in workbook1 by a procedure written in
> workbook2 by its code name??

 
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
Activate each sheet in workbook with exception of... Jazz Microsoft Excel Programming 1 7th Oct 2009 08:09 PM
WorkBook Open & Sheet Activate jimmy Microsoft Excel Programming 1 8th May 2007 06:26 PM
Run a sheet's activate code when entering it's workbook mikeburg Microsoft Excel Programming 2 3rd Dec 2005 05:50 AM
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
Re: how to open a Workbook and activate a specific sheet Bob Phillips Microsoft Excel Programming 0 17th Aug 2004 09:24 PM


Features
 

Advertising
 

Newsgroups
 


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