Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
i have the following code:
Public Sub SaveAsA1() ThisFile = Range("A1").Value ActiveWorkbook.SaveAs Filename:=ThisFile End Sub i understand the above code, but what i need it to do is in this order is: save (like above into a target folder such as C:\Documents and Settings\All Users\Documents\Folder Name\Filename ... after the save, it prints out a copy of the file. thank you, jatman |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Public Sub SaveAsA1()
mypath = "c:\a\" ThisFile = Sheets("sheet1").Range("A1").Value 'MsgBox mypath & thisfile & ".xls" ActiveWorkbook.SaveAs Filename:=mypath & ThisFile End Sub -- Don Guillett SalesAid Software "jatman" wrote in message ... i have the following code: Public Sub SaveAsA1() ThisFile = Range("A1").Value ActiveWorkbook.SaveAs Filename:=ThisFile End Sub i understand the above code, but what i need it to do is in this order is: save (like above into a target folder such as C:\Documents and Settings\All Users\Documents\Folder Name\Filename ... after the save, it prints out a copy of the file. thank you, jatman |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
To print the entire workbook, try adding this to Don's suggestion.
ActiveWorkbook.PrintOut Copies:=1 "jatman" wrote: i have the following code: Public Sub SaveAsA1() ThisFile = Range("A1").Value ActiveWorkbook.SaveAs Filename:=ThisFile End Sub i understand the above code, but what i need it to do is in this order is: save (like above into a target folder such as C:\Documents and Settings\All Users\Documents\Folder Name\Filename ... after the save, it prints out a copy of the file. thank you, jatman |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
printing zip codes | Excel Discussion (Misc queries) | |||
I have two columns (A) and (G) that have like product codes however | Excel Worksheet Functions | |||
Zip codes and Distances | Excel Discussion (Misc queries) | |||
Excel 2003 list of field codes for footers? | Excel Discussion (Misc queries) | |||
Vlookup w/multiple codes | Excel Worksheet Functions |