How can i run a marco to save as a file and checkin the "old/other" file?
The name of the other file can vary because of the person how saves it.
How can i run a marco to save as a file and checkin the "old/other" file?
The name of the other file can vary because of the person how saves it.
i tried
But this doesn't work.Please Login or Register to view this content.
Define "doesn't work".
Please don't 'drip feed' information - declare everything at the start in your opening post in future. Thanks.
Last edited by AliGW; 01-11-2022 at 07:27 AM.
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.
I get the error 9 in the line
Please Login or Register to view this content.
What error???
Please give specific detail.
Run-time error '9':
Subscript out of range
Hi,
according to the initial post if you need to keep the original workbook as it is under the active Excel session
so you should better use SaveCopyAs rather than SaveAs method …
But SaveCopyAs on sharepont doesn't work.
According to your issue you must use the workbook property FullName rather than Path ! Just reading VBA help …
I used full name, but when VBA saveas a file it closes the original. Then i have to reopen the original before VBA can CheckIn the file. That is a slow long progress.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks