Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 516
Default more help on using buttons and Macros?

is there a way to prevenbt printing of a sheet if certain cells are not
filled in when they hit the button to print?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 84
Default more help on using buttons and Macros?

You simply need to write a macro for the BeforePrint action:

Private Sub Workbook_BeforePrint(Cancel As Boolean)

<do your test, etc. here

End Sub


"Matt" wrote:

is there a way to prevenbt printing of a sheet if certain cells are not
filled in when they hit the button to print?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 449
Default more help on using buttons and Macros?

Yes. You can trap this in the Workbook_BeforePrint event.

HTH. Best wishes Harald


"Matt" wrote in message
...
is there a way to prevenbt printing of a sheet if certain cells are not
filled in when they hit the button to print?


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
Buttons and Macros ABCMike Excel Discussion (Misc queries) 1 July 12th 07 08:42 PM
Macros and buttons Sandy Excel Worksheet Functions 6 April 23rd 07 01:15 PM
Macros And Buttons [email protected] Excel Discussion (Misc queries) 4 August 8th 06 10:37 PM
Buttons and macros? Joe Excel Discussion (Misc queries) 3 October 7th 05 02:34 AM
buttons & macros Jock W Excel Worksheet Functions 4 April 30th 05 07:35 AM


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