Please help with syntax error for code below:
ActiveWorkbook.SaveAs Filename:= ("C:\Users\abek276\Desktop\REPORTS1\, FileFormat:=xlExcel8,Password: ="hell001", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False)& MyName
Please help with syntax error for code below:
ActiveWorkbook.SaveAs Filename:= ("C:\Users\abek276\Desktop\REPORTS1\, FileFormat:=xlExcel8,Password: ="hell001", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False)& MyName
try
Please Login or Register to view this content.
thanks but his isn't working.
how do you add in the password to the Save as bit of code?
thanks but his isn't working.
how do you add in the password to the Save as bit of code?
Last edited by AliGW; 02-04-2019 at 02:32 AM.
this is my current code:
ActiveWorkbook.SaveAs ("C:\Users\abek276\Desktop\REPORTS1\") & MyName
how do you add in the password to the Save as bit of code?
Last edited by AliGW; 02-04-2019 at 02:32 AM.
need Urgent assistance anyone?
You had a bracket and the & MyName in the wrong place.
Try this:
Please Login or Register to view this content.
Regards,
Aardigspook
I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
You don't need to give me rep if I helped, but a thank-you is nice.
This is perfect.... thanks
Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!
For normal conversational replies, try using the QUICK REPLY box below.
This is a forum manned by volunteers in their spare time, not a paid 'service' - please don't expect urgent attention. Thanks.need Urgent assistance anyone?
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Noted
Thanks
You're welcome.
If that takes care of your original question, then please take a moment to mark the thread as Solved so others know there's an answer here (instructions are in my sig). Thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks