Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default protect print_area?

i originally posted this in excel.printing:

how would I go bout protecting a WS print_area? so that other users who work
on the WB cant mess up page breaks and page layouts?

Many thanks,

Steve


Have you asked in microsoft.public.excel.programming? I've a book here that
tells you how to completely remove options from the toolbar using VBA, so
you could set up your workbook to do that when it gets opened and then
restore the menus when the book is closed. There are probably tidier ways of
doing similar things as well.

I would provide it here for you, but I haven't really got my head around
that subject (yet).

Paul C,
--

Steven wrote:
thanks Rob,

would be better if there was a way to lock the page setups though,
because any changes would totally mess up the workbook, good id with
saving the custom views, at least its a quick fix to get them back.

Regards,
Steve

"Rob" wrote in message
...
Steven,

One way which still allows users to set up their own print range is
to set up your print and page settings as you require and then using
the menu
View, Custom View to create a view which you can recall easily.
I

usually add the following VBA code and attach to a button that then
prints the sheet as per my setting. A user could change the Custom
View but most don't know of this.

Hope this is of some use,
Rob

Sub PrintCustomView()
On Error GoTo ErrorMsg
'Enter the named custom view to print in place of PrtRg
Const Cview As String = "PrtRg"
ActiveWorkbook.CustomViews(Cview).Show
ActiveWindow.SelectedSheets.PrintOut 'or PrintPreview
Exit Sub
ErrorMsg:
MsgBox "Error encountered, likely wrong Custom View name.", , "Error"
End Sub





  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default protect print_area?

Hi Steve
protect the workbook/worksheet: 'Tools - Protection'

--
Regards
Frank Kabel
Frankfurt, Germany


Steven wrote:
i originally posted this in excel.printing:

how would I go bout protecting a WS print_area? so that other users
who work on the WB cant mess up page breaks and page layouts?

Many thanks,

Steve


Have you asked in microsoft.public.excel.programming? I've a book
here that tells you how to completely remove options from the toolbar
using VBA, so you could set up your workbook to do that when it gets
opened and then restore the menus when the book is closed. There are
probably tidier ways of doing similar things as well.

I would provide it here for you, but I haven't really got my head
around that subject (yet).

Paul C,

Steven wrote:
thanks Rob,

would be better if there was a way to lock the page setups though,
because any changes would totally mess up the workbook, good id with
saving the custom views, at least its a quick fix to get them back.

Regards,
Steve

"Rob" wrote in message
...
Steven,

One way which still allows users to set up their own print range is
to set up your print and page settings as you require and then

using
the menu
View, Custom View to create a view which you can recall easily.
I
usually add the following VBA code and attach to a button that then
prints the sheet as per my setting. A user could change the Custom
View but most don't know of this.

Hope this is of some use,
Rob

Sub PrintCustomView()
On Error GoTo ErrorMsg
'Enter the named custom view to print in place of PrtRg
Const Cview As String = "PrtRg"
ActiveWorkbook.CustomViews(Cview).Show
ActiveWindow.SelectedSheets.PrintOut 'or PrintPreview
Exit Sub
ErrorMsg:
MsgBox "Error encountered, likely wrong Custom View name.", ,
"Error" End Sub


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
Excel: Blank Screen Stuck in Wierd Print_Area mode Shell E Excel Discussion (Misc queries) 1 December 8th 06 04:07 PM
Add "Protect ALL Sheets" that is the same as "Protect Sheet" KLLuoma Excel Worksheet Functions 0 July 27th 06 07:55 PM
Protect Workbook Vs Protect Sheet Poor_pakistani New Users to Excel 4 May 25th 06 02:06 PM
Can I protect columns w/in a "List" using Protect Sheet? Diane Excel Discussion (Misc queries) 0 May 10th 06 03:30 PM
Print Ranges when Print_Area not set Dominic Robinson Excel Programming 1 September 11th 03 09:38 AM


All times are GMT +1. The time now is 09:33 PM.

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"