I have a spreadsheet that may be opened from different folders.
Is it possible to create a macro to see if a file exists in the same folder that the spreadsheet was opened from?
Thanks
I have a spreadsheet that may be opened from different folders.
Is it possible to create a macro to see if a file exists in the same folder that the spreadsheet was opened from?
Thanks
Try this macro:Replace "Book4.xlsx" with the name of the file you want to check.![]()
Please Login or Register to view this content.
You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
Practice makes perfect. I'm very far from perfect so I'm still practising.
I've been unable to get this to recognize my file (Inventory.xls) located in the directory the spreadsheet was opened from.
Thanks
Just tried it and the code works like it should.
Did you type in the name exactly as is? No extra spaces, capital letters etc
![]()
Please Login or Register to view this content.
Last edited by gaixixon; 08-07-2016 at 11:06 PM.
I was able to get this to work:
Thanks for your help!![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks