Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default View Custom View with Sheet Protection

I have excel running estimates for me. I have 3 diff prices which can be
picked from. I have this all set up. I want to lock the prices so noone can
change them. I also have custom views set up, so that instead of print 5
pages, you can print out only the information important to your estimate.
But when I lock the price cells, I can not access my custom views. Is there
a way to set this up diff, so I can still lock the cells i need locked and
view my custom views?

Thanks
John
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default View Custom View with Sheet Protection

John

You will have unprotect, change views then reprotect.

Best way to do this is with a macro.

Sub Change_View()
ActiveSheet.Unprotect Password:="justme"
ActiveWorkbook.CustomViews("my view").Show
ActiveSheet.Protect Password:="justme"
End Sub

If you are wanting to change views for printing, use this code in Thisworkbook.

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.Unprotect Password:="justme"
ActiveWorkbook.CustomViews("my view").Show
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
ActiveWorkbook.CustomViews("other view").Show
ActiveSheet.Protect Password:="justme"
End Sub


Gord Dibben MS Excel MVP

On Fri, 16 Feb 2007 08:19:23 -0800, John H <John
wrote:

I have excel running estimates for me. I have 3 diff prices which can be
picked from. I have this all set up. I want to lock the prices so noone can
change them. I also have custom views set up, so that instead of print 5
pages, you can print out only the information important to your estimate.
But when I lock the price cells, I can not access my custom views. Is there
a way to set this up diff, so I can still lock the cells i need locked and
view my custom views?

Thanks
John


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
column is hidden in normal view but not print view Bianca Excel Worksheet Functions 2 June 23rd 06 08:38 AM
How to view a custom view when the worksheet is protected? JulesJam Excel Worksheet Functions 0 March 6th 06 02:15 PM
view group and outline with protection on derwood Excel Discussion (Misc queries) 1 February 27th 06 02:01 AM
Missing "Custom View" entry from View menu mycroft777 Excel Discussion (Misc queries) 1 February 3rd 06 05:33 PM
custom function not recalcing on sheet with outline view donh Excel Worksheet Functions 2 October 25th 05 01:20 AM


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