troubleshooting Question

Application.SaveAs Marco

Avatar of KP_SoCal
KP_SoCalFlag for United States of America asked on
Microsoft OfficeMicrosoft ExcelSpreadsheets
4 Comments2 Solutions314 ViewsLast Modified:
For File1.xlsm, I would like to save file as (Application SaveAs) File2.xlsm in the same sub folder that File1.xlsm exists in.  If this possible to accomplish through a macro?  I assume it is.  There must be a way to save the current directory path as a variable and then modify the file name by means of a len function.  I’m just not sure how to piece it together.  Any help would be greatly appreciated.  Thanks!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros