ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   more help on using buttons and Macros? (https://www.excelbanter.com/excel-discussion-misc-queries/232273-more-help-using-buttons-macros.html)

Matt

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?


Bobt

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?


Harald Staff[_2_]

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?




All times are GMT +1. The time now is 04:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com