Hello everybody I am trying to print multiple sheets from the same work book at the same time. I know I could record a macro to do it. My question is could you use an if then statement to print based on if a cell had a value in it?
Hello everybody I am trying to print multiple sheets from the same work book at the same time. I know I could record a macro to do it. My question is could you use an if then statement to print based on if a cell had a value in it?
Simple answer is yes. Why don't you present us with your recorded macro and tell us what you would like to change or amend to make it work for you.
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
I recorded printing all of the sheets, all of them are 6 pages long. I need to only print the pages that have data in them. I will attach a copy of the work book to so you can see what I am talking about.
If anybody has any questions, please let me know![]()
Sub Print_Sheets() ' ' Print_Sheets Macro ' ' ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _ IgnorePrintAreas:=False Sheets("HGBT").Select ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _ IgnorePrintAreas:=False Sheets("HGT").Select ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _ IgnorePrintAreas:=False End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks