FoRmEd
Board Regular
- Joined
- Jan 29, 2011
- Messages
- 72
Hello everyone:
I located the following codes on our site and would like to merge them all and add just one more thing.
First I want to save a single sheet:
Then, if the destination folder doesn't exist, it needs to be created.
Lastly I want it to create a custom save as name "PHZ2[todays date].xls"
"today's date" would be pulled from a populated cell like N1
Your help is in merging these is much appreciated
I located the following codes on our site and would like to merge them all and add just one more thing.
First I want to save a single sheet:
Code:
Sub savesheet2()
Application.ScreenUpdating = False
ActiveSheet.Select
ActiveSheet.Copy
ThisFile = Range("A1").Value
ActiveSheet.SaveAs Filename:="C:temp" & ThisFile & ".xls"
Application.ScreenUpdating = True
ActiveWorkbook.Close
End Sub
Then, if the destination folder doesn't exist, it needs to be created.
Code:
Function fileexists(f As String) As Boolean
If Not f = vbNullString Then fileexists = True
End Function
Lastly I want it to create a custom save as name "PHZ2[todays date].xls"
"today's date" would be pulled from a populated cell like N1
Code:
no code just yet
Your help is in merging these is much appreciated