Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default Macro for individuals worksheets

I used the macro recorder to create a macro for one of the worksheets in my
workbook, and added a button to my toolbar. My problem is I need different
macros for each worksheet.

Can I create a macro that will be specific to each worksheet rather than the
entire workbook?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 211
Default Macro for individuals worksheets

All Macros you create have unique names and they are accessible through all
worksheets.
If you are going to use same Marco in different sheets, you don't need to
record for each sheet. One is enough for all work sheets and under special
circumstances even you can access them from other workbooks (excel files) as
well.

"chrisnsmith" wrote:

I used the macro recorder to create a macro for one of the worksheets in my
workbook, and added a button to my toolbar. My problem is I need different
macros for each worksheet.

Can I create a macro that will be specific to each worksheet rather than the
entire workbook?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Macro for individuals worksheets


Lot's of ways. As ALWAYS, post YOUR code for comments and suggestions

for each ws in worksheets
ws.do your thing
next

activeworksheet.range("a1")=1


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"chrisnsmith" wrote in message
...
I used the macro recorder to create a macro for one of the worksheets in my
workbook, and added a button to my toolbar. My problem is I need
different
macros for each worksheet.

Can I create a macro that will be specific to each worksheet rather than
the
entire workbook?


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
Email workbook to multiple individuals with their specific data Tamara Excel Discussion (Misc queries) 3 January 8th 09 10:11 PM
the curser is highlighting multiple cells instead of individuals farmerdan Excel Discussion (Misc queries) 4 May 4th 07 01:47 PM
What formula do I use to get individuals ages from their birthday akucolor Excel Discussion (Misc queries) 2 May 31st 06 08:38 PM
Work out overtime hours for individuals Fudge New Users to Excel 3 April 26th 06 12:52 PM
Work out overtime hours for individuals Fudge New Users to Excel 13 April 10th 06 04:10 PM


All times are GMT +1. The time now is 12:44 PM.

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

About Us

"It's about Microsoft Excel"