Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Macro to select a view

Is there a VBA macro statement that will select a custom view? I'd like
to assign such a macro to a button.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Macro to select a view

hi
ActiveWorkbook.CustomViews("myview").Show

regards

FSt1

"Kent McPherson" wrote:

Is there a VBA macro statement that will select a custom view? I'd like
to assign such a macro to a button.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to select a view


ActiveWorkbook.CustomViews(-nameOfCustomView-).Sho

--
TommySzalapsk
-----------------------------------------------------------------------
TommySzalapski's Profile: http://www.excelforum.com/member.php...fo&userid=2556
View this thread: http://www.excelforum.com/showthread.php?threadid=39090

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Macro to select a view



Thank you!! Exactly what I needed.

*** Sent via Developersdex http://www.developersdex.com ***
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Macro to select a view


How about hiding particular worksheets by clicking on buttons to hide
them? In other words, I have worksheets A, B, C, D, & E. I want to have
buttons that say "Hide A", "Hide B", etc. Or maybe set up a checklist
that shows which sheets to hide or show. I want the user of the
spreadsheet to be able to customize what he/she actually sees.
Thoughts?


*** Sent via Developersdex http://www.developersdex.com ***


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Macro to select a view

FSt1 wrote:
hi
ActiveWorkbook.CustomViews("myview").Show

regards

FSt1

"Kent McPherson" wrote:


Is there a VBA macro statement that will select a custom view? I'd like
to assign such a macro to a button.


How about hiding particular worksheets by clicking on buttons to hide
them? In other words, I have worksheets A, B, C, D, & E. I want to have
buttons that say "Hide A", "Hide B", etc. Or maybe set up a checklist
that shows which sheets to hide or show. I want the user of the
spreadsheet to be able to customize what he/she actually sees. Thoughts?
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro to select a view


Worksheets(-nameOfSheet- ).Visible = Fals

--
TommySzalapsk
-----------------------------------------------------------------------
TommySzalapski's Profile: http://www.excelforum.com/member.php...fo&userid=2556
View this thread: http://www.excelforum.com/showthread.php?threadid=39090

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
Macro to select cells without a certain value and select a menu it Guy[_2_] Excel Worksheet Functions 9 January 2nd 09 05:21 PM
how to view a macro Holly Excel Discussion (Misc queries) 3 January 30th 07 06:11 PM
View, scroll and select a cell value from another Excel sheet? benb Excel Worksheet Functions 1 October 12th 06 05:48 AM
XLS Worksheet 'Select All' button + top 2 rows not in view in wind JoB Excel Discussion (Misc queries) 1 June 17th 06 01:14 AM
Select other workbook to select data in a macro. T Tromp Excel Programming 2 September 19th 03 01:43 PM


All times are GMT +1. The time now is 05:49 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"