Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Custom Views based on sheet name

I have a workbook with approx 17 pages. Each page has 3 custom views. The
views use the sheet name followed by Summary, Detail or Both ie..
ProductSummary, ProductDetail or ProductBoth.

I also have a dialog box that allows the user to select their view
ActiveWorkbook.CustomViews("ProductSummary").Show
but setting up a macro for each view for each page is getting very tedious.

Is it possible to use one macro that will insert the name of the active
sheet if they push a button named Summary so there isn't a macro for each
page?

I'm thinking something like
ActiveWorkbook.CustomViews("Active.Worksheet"Summa ry).Show
but this doesn't appear to work......
Any ideas?


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
Sheet protection AND custom views Meltad Excel Discussion (Misc queries) 0 October 9th 06 12:35 PM
Hiding columns, custom views, protected sheet Ian Excel Discussion (Misc queries) 0 May 4th 06 09:59 AM
PROTECT SHEET AND SEE MY CUSTOM VIEWS LIVE SANDY Excel Worksheet Functions 0 September 21st 05 11:44 PM
Custom Views based on sheet name Tom Ogilvy Excel Programming 2 September 22nd 04 01:55 PM
Protect sheet while enabling outlines and custom views [email protected] Excel Programming 13 January 13th 04 03:46 AM


All times are GMT +1. The time now is 02:14 AM.

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"