Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Here's a way Sub aaa() For Each wb In Application.Workbooks wb.Sheets("Sheet1").PrintOut wb.Close savechanges:=True 'Or false counter = counter + 1 Next msg = MsgBox(counter & " sheets has been printed", vbInformation + vbOKOnly) End Sub Regards, Per "JOSEPH WEBER" skrev i meddelelsen ... I need to know if there is a way i can run a macro to count all open workbooks and print "sheet1" of all open workbooks. The macro should close each workbook after printing the first sheet. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel2007; workbooks.count is not counting all open workbooks | Excel Programming | |||
Count open workbooks before closing | Excel Programming | |||
Open many workbooks in Excel & print one page | Excel Discussion (Misc queries) | |||
Macro to open print window and set to print entire workbook | Excel Discussion (Misc queries) | |||
count number of workbooks open | Excel Programming |