Link to home
Start Free TrialLog in
Avatar of Seamus2626
Seamus2626Flag for Ireland

asked on

Amend Save File code

Hi,

I have the below which saves as todays date, i need it amended so it saves as yesterdays date and it must account for weekends.

So saving today would create

14/09

and saving tomorrow will create

17/09

Thanks
Seamus


    Strpath = "xyz:\Ldn\BOBPS\BOBPSControl\Rep\Match Stats\GLA & SGP New Reporting\Daily Intellimatch File"

    strFileSaveName = "" & Format(Date, "yyyymmdd") & ".xls"
    Application.DisplayAlerts = False
    ActiveWorkbook.SaveAs Filename:=strFileSaveName, FileFormat:=xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False
Avatar of Seaton007
Seaton007
Flag of United States of America image

ASKER CERTIFIED SOLUTION
Avatar of ScriptAddict
ScriptAddict
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial