Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
superName should hold the name of the supervisor.
sName = "C:\Folder1\" & superName & ".xls" activeworkbook.SaveAs Filename:=sName activeworkbook.Close SaveChanges:=False -- Regards, Tom Ogilvy "roger" wrote in message ... I have a couple thousand rows of data that I need to sort by supervisor. However, it is payroll info, so I have to sort, copy, and paste each supervisors info into a new workbook without showing them the other info, each book will then be e-mailed to the respective supervisors. I can writew a macro to do everything except change the save name. I tried copying and pasting into the save as box, but it continues to save it under the original name I used when writing the macro. Is there anything I can do? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro buttons opening saved macro | Excel Discussion (Misc queries) | |||
Hyperlinks change when file is saved | Excel Worksheet Functions | |||
how to change # or copies to print in a saved sheet? | Excel Discussion (Misc queries) | |||
undo a saved change | Excel Discussion (Misc queries) | |||
How to have:= NOW () date/time change only if updated and saved | Excel Worksheet Functions |