ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   BeforePrint (https://www.excelbanter.com/excel-programming/437408-beforeprint.html)

robzrob

BeforePrint
 
Workbook with several worksheets. I want actions performed
BeforePrint but only if either WS1 or WS2 are active.

If WS1 is active, MsgBox YesNo "Is blah blah...?" If yes, just print,
if no, open dialogue box with 2 labels (questions) and 2 text boxes.
When both text boxes are completed and OK'd, in WS1 cell X99, put
[capitalised text of text box 1] comma space [capitalised text of text
box 2], print

If WS2 is active, MsgBox YesNo "Is blah blah...?" If yes, just print,
if no, open dialogue box with 2 labels (questions) and 2 text boxes.
When both text boxes are completed and OK'd, in WS2 cell X99, put
[capitalised text of text box 1] comma space [capitalised text of text
box 2], print

If any other WS active, just print


All times are GMT +1. The time now is 03:38 AM.

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