PC Review


Reply
Thread Tools Rate Thread

Apply a macro to only one sheet

 
 
Marcus Analyst
Guest
Posts: n/a
 
      3rd Jan 2008
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 With Quote
 
 
 
 
Per Jessen
Guest
Posts: n/a
 
      3rd Jan 2008
On 3 Jan., 03:35, Marcus Analyst
<MarcusAnal...@discussions.microsoft.com> 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
 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      3rd Jan 2008
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 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
RE: Apply macro to one sheet only CLR Microsoft Excel Misc 4 3rd Jan 2008 10:14 PM
RE: Apply macro to one sheet only Gary''s Student Microsoft Excel Misc 1 3rd Jan 2008 10:13 PM
Re: Apply macro to one sheet only Sandy Mann Microsoft Excel Misc 1 3rd Jan 2008 10:13 PM
Taking one value sheet 1 and apply to sheet 2 join_the_band Microsoft Excel Discussion 2 8th Jun 2006 02:09 AM
apply a macro to all sheets except for a certain sheet minrufeng Microsoft Excel Misc 4 22nd Feb 2006 02:53 PM


Features
 

Advertising
 

Newsgroups
 


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