Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 328
Default Running a macro in several worksheets

I have a workbook that will be used by several people. I need them to be
able to copy a worksheet and use the macros placed on there for the new
worksheet. I am finding that when I copy my first worksheet, and attempt to
run the macro on sheet2, it goes back to sheet1.

1 macro is written as follows:

Sub Shelving()
'
' Shelving Macro
'

'
ActiveWorkbook.CustomViews("Shelving").Show
End Sub



What do I need to change in order to have this work on the new sheet?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Running a macro in several worksheets

Custom views format a specific representation of a specific sheet. When you
switch to that view you switch to that sheet by default. Custom views can not
be use to format different sheets.
--
HTH...

Jim Thomlinson


"Lisa" wrote:

I have a workbook that will be used by several people. I need them to be
able to copy a worksheet and use the macros placed on there for the new
worksheet. I am finding that when I copy my first worksheet, and attempt to
run the macro on sheet2, it goes back to sheet1.

1 macro is written as follows:

Sub Shelving()
'
' Shelving Macro
'

'
ActiveWorkbook.CustomViews("Shelving").Show
End Sub



What do I need to change in order to have this work on the new sheet?

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
running totals between worksheets rn2pacu Excel Worksheet Functions 1 May 8th 07 12:46 AM
Event Macro running another macro inside K1KKKA Excel Discussion (Misc queries) 1 December 20th 06 08:21 PM
disable user running macro from Tools Macro Steve Simons Excel Discussion (Misc queries) 4 September 28th 06 06:28 AM
Running Same macro in 250 Worksheets in Same Workbook halem2 Excel Worksheet Functions 3 March 24th 06 08:51 AM
Running a macro for all visible worksheets in a workbook Craig_Richards Excel Discussion (Misc queries) 2 August 8th 05 12:24 PM


All times are GMT +1. The time now is 12:47 AM.

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"