Continuation of old question
Posted by Deb on May 29, 2000 9:17 PM
All right for those that don't know I print out the first sheet of about 20 workbooks for about 20 people
A lot of the workbooks are in not in use every day. This code is planted into every sheet now with the correct names in each workbook. What i would like to do is "now" Is search through the twenty workbooks and if the value in B2 is yesterdays date I would like to print out the first persons sheet then the second persons then the hird and so on.
So If workbooks 1 5 and 7 have 5/29/00 then i want to print out those workbook 1 with pegs name then workbook5 with pegs name then workbook 7 with pegs name.
Now Joe does not get worksheet 5 so next it would print out worrkbook1 with joes name then worksheet 7 with joes name.
This sheet works fine but Would like to save myself the filing time to seperate 300 or so copies.
Thank you to Celia who Helped program this
Sub Workbook1()
With Sheets("Summary")
'Enters recipient name
.PageSetup.RightHeader = "&14File"
'Prints
.PrintOut Copies:=1
'Enters recipient name
.PageSetup.RightHeader = "&14Peg"
'Prints
.PrintOut Copies:=1
'Enters recipient name
.PageSetup.RightHeader = "&14Joe"
'Prints
.PrintOut Copies:=1
'Enters recipient name
.PageSetup.RightHeader = "&14Rob"
'Prints
.PrintOut Copies:=1
'Enters recipient name
.PageSetup.RightHeader = "&14Ken"
'Prints
.PrintOut Copies:=1
'Clears recipient name
.PageSetup.RightHeader = ""
End With
End Sub