Hello, Please advise me on VBA to print all active sheets in a excel file Regards Jay
J Jayadev Sarangi Member Oct 5, 2012 #1 Hello, Please advise me on VBA to print all active sheets in a excel file Regards Jay
Luke M Excel Ninja Staff member Oct 5, 2012 #2 To print workbook, it's just Code: ActiveWorkbook.PrintOut If you only need visible sheets: [pre]Sub PrintVisibleSheets() For Each ws In ActiveWorkbook.Worksheets If ws.Visible Then ws.PrintOut End If Next End Sub [/pre]
To print workbook, it's just Code: ActiveWorkbook.PrintOut If you only need visible sheets: [pre]Sub PrintVisibleSheets() For Each ws In ActiveWorkbook.Worksheets If ws.Visible Then ws.PrintOut End If Next End Sub [/pre]
Debraj Excel Ninja Oct 5, 2012 #3 Hi Jaydev! Can you please search in the top right Google Search Box, Only "Hui Print Macro" enough to search the best Printing Solution of all Time.. Regards, Deb
Hi Jaydev! Can you please search in the top right Google Search Box, Only "Hui Print Macro" enough to search the best Printing Solution of all Time.. Regards, Deb