Avatar of KP_SoCal
KP_SoCal
Flag for United States of America asked on

Application.SaveAs Marco

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!
Microsoft ExcelMicrosoft OfficeSpreadsheets

Avatar of undefined
Last Comment
KP_SoCal

8/22/2022 - Mon
SOLUTION
nutsch

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
KP_SoCal

ASKER
Looks like this is going to do the trick.  I'm going to test this and post the points in a few minutes.  Thanks!
ASKER CERTIFIED SOLUTION
softpro2k

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
KP_SoCal

ASKER
Great solutions!  Thanks guys!!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck