Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default stop excel sheet from being printed

like to stop other users from being able to print the first page of a workbook
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default stop excel sheet from being printed

Use a macro like
Private Sub workbook_BeforePrint(Cancel As Boolean)

Select Case ActiveSheet.Name

Case "Sheet1", "Sheet2"

Cancel = True

MsgBox "Sorry, you cannot print this sheet from this workbook",_

vbInformation

End Select

End Sub


See
http://www.brainbell.com/tutorials/m...in_Actions.htm for details
(the above macro is taken from the page above)

"Zambian" wrote:

like to stop other users from being able to print the first page of a workbook

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default stop excel sheet from being printed

Different interpretations of what you are asking for here -- I see it that
you are asking to "SKIP" the printing of any Page1 on say a Sheet1 that print
several pages ordinarily (say 1 to 5).. any way

Give this a shot: (In a Standard module - paste in)

Sub PrintSkipP1()
Dim sht As Worksheet
TotPages = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")
For Each sht In ActiveWindow.SelectedSheets
sht.PrintOut From:=2, To:=TotPages
Next sht
Set sht = Nothing
End Sub

"Zambian" wrote:

like to stop other users from being able to print the first page of a workbook

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
Retrieving printed unsaved sheet Jenn247 Excel Discussion (Misc queries) 2 June 1st 08 07:01 PM
Subtotals for printed sheet? Minx Excel Discussion (Misc queries) 3 January 7th 08 08:01 PM
protect a sheet from being printed? RVal Excel Discussion (Misc queries) 4 April 29th 06 04:20 PM
Excel - need an serial # to update everytime sheet is printed. C. Excel Worksheet Functions 0 March 27th 06 09:21 PM
Stop Excel form objects being printed Jong Excel Discussion (Misc queries) 1 December 7th 05 02:36 PM


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