Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use sheet tab to name a file

Status
Not open for further replies.

cboz

Technical User
Joined
Dec 24, 2002
Messages
42
Location
US
I want to replace MyName with the tab name of the active sheet in the following code. How is this done?

ActiveWorkbook.SaveAs "G:\Procurement\CXB\07 Vendor forecasts\" & MyName & Format(Date + 3, "yymmdd") & ".xls
 





Hi,
Code:
ActiveWorkbook.SaveAs "G:\Procurement\CXB\07 Vendor forecasts\" & activesheet.name & Format(Date + 3, "yymmdd") & ".xls"



Skip,

[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue]
 
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top