Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / June 2005

Tip: Looking for answers? Try searching our database.

Need help starting a macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
moorso - 20 Jun 2005 13:01 GMT
I have a macro I would like to run when a partiuclar sheet is selected
in a workbook but cant find where that is covered.  I would also like
that same macro to run when the sheet is closed and another sheet is
opened.   Is there such a command in Excel.  TIA

Signature

moorso

Andy Wiggins - 20 Jun 2005 13:14 GMT
You need an event.

Lookup "SheetActivate Event" in Excel's VBA Help file. Specifically, you
require Worksheet_Activate and Worksheet_Deactivate.

Signature

Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy
-

> I have a macro I would like to run when a partiuclar sheet is selected
> in a workbook but cant find where that is covered.  I would also like
> that same macro to run when the sheet is closed and another sheet is
> opened.   Is there such a command in Excel.  TIA
Bob Phillips - 20 Jun 2005 13:36 GMT
See response in .programming.

Signature

HTH

RP
(remove nothere from the email address if mailing direct)

> I have a macro I would like to run when a partiuclar sheet is selected
> in a workbook but cant find where that is covered.  I would also like
> that same macro to run when the sheet is closed and another sheet is
> opened.   Is there such a command in Excel.  TIA
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.