How to save an Excel file with the week number in it.

I cannot find the answer to this.
Here is my code;
ActiveWorkbook.SaveAs FileName:="W:\@WIPs Updates\32-Update " & "Week " & Format(Now, "yyyy-mm-dd"), FileFormat:=xlOpenXMLWorkbook

I want the file name to be "32-Update Week 20"...I do not know how to change the format part.
Thanks
Jimi
Jimi ShermanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martin LissOlder than dirtCommented:
ActiveWorkbook.SaveAs FileName:="W:\@WIPs Updates\32-Update " & "Week " & WorksheetFunction.WeekNum(now(), 1), FileFormat:=xlOpenXMLWorkbook
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Wayne Taylor (webtubbs)Commented:
You can also get the week with the Format function by stipulating a format of "ww"....

ActiveWorkbook.SaveAs FileName:="W:\@WIPs Updates\32-Update " & "Week " & Format(Now, "ww"), FileFormat:=xlOpenXMLWorkbook
0
Jimi ShermanAuthor Commented:
Thanks
0
Jimi ShermanAuthor Commented:
Hey Guys thanks for the answers I gave to points to Martin due to he answered first and it works.
Wayne your answer was VERY easy...did not know it could be that simple!
Thanks to you both.
Jimi
0
Martin LissOlder than dirtCommented:
You're welcome and I'm glad I was able to help.

In my profile you'll find links to some articles I've written that may interest you.
Marty - MVP 2009 to 2015
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.