Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Apply a macro to only one sheet

I have a workbook and have written a macro to hide certain rows in one
worksheet upon opening the file. It is an Auto_Open macro. However, it also
hides the same rows in another sheet and in any new sheets I add to the
workbook. QUESTION: How do I get the macro to be applied to only one sheet?
--
Marc
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default Apply a macro to only one sheet

On 3 Jan., 03:35, Marcus Analyst
wrote:
I have a workbook and have written a macro to hide certain rows in one
worksheet upon opening the file. It is an Auto_Open macro. However, it also
hides the same rows in another sheet and in any new sheets I add to the
workbook. QUESTION: How do I get the macro to be applied to only one sheet?
--
Marc


Hi Marc

How are you referring to the sheet?

sheets(1).range....

or

Sheets("Sheet1").range...

Show us the code.

//Per
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Apply a macro to only one sheet

Post the code you are now using and someone can tell you what you need to
change.

"Marcus Analyst" wrote:

I have a workbook and have written a macro to hide certain rows in one
worksheet upon opening the file. It is an Auto_Open macro. However, it also
hides the same rows in another sheet and in any new sheets I add to the
workbook. QUESTION: How do I get the macro to be applied to only one sheet?
--
Marc

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
Apply macro to one sheet only Marcus Analyst Excel Discussion (Misc queries) 9 January 3rd 08 10:14 PM
how do I apply changes I make on one sheet to other sheets? Anne Excel Discussion (Misc queries) 2 December 19th 07 08:57 PM
apply a macro to all sheets except for a certain sheet minrufeng Excel Discussion (Misc queries) 4 February 22nd 06 02:53 PM
Apply same template to other sheet shampabera Excel Programming 0 August 16th 05 01:02 PM
How do I apply LTRIM to entire Sheet? D[_6_] Excel Programming 2 August 11th 04 11:04 AM


All times are GMT +1. The time now is 03:58 PM.

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

About Us

"It's about Microsoft Excel"