Good morning, all….and in particular, Hans — in December, you helped me with some VBA code that would call 3 or 4 macros in sequence. I am doing the following: I have anywhere from 10-15 workbooks (called “??timsheets”) open at once; I also have open 2 workbooks called Overtime and MonthEnd….presently, each timesheet (and they all have different names b/c they come to me from different people) has a macro that will make a SUMMARY sheet the active sheet; copy data from the SUMMARY and paste that data (values only) into the Overtime workbook and into the MonthEnd workbook; the active ??timesheet closes. I then manually move to another “!!timesheet” and call the same series of macros. It looks like this:
Sub DoBoth()
‘
‘ DoBoth Macro
‘ Macro recorded 12/8/2007 by David J. McNab
‘
‘ Keyboard Shortcut: Ctrl+C
Call Go_to_Summary
Call Autoadjust_Summary
Call Copy_Paste_Month_End
Call Copy_Paste_Overtime
Call Save_and_Close
End Sub
….what I am looking for is some code that will not only Save_and_Close the timesheet that was just copied and pasted (into the Overtime and the MOnthEnd workbooks) but will automatically move to the next timesheet (and I can then call the sequence of macros for that timesheet)…in other words, some code that will alleviate me from having to move manually to each timesheet……during all of this the names of the Overtime and the MonthEnd workbooks remain constant, so maybe something that “looks for” any other open .xls file ??..??….not sure, but thought that you would know….I hope I have given enough info, b/c I don’t want to make my post too big…..the original post from me was 681244…..Thank you.