Hello,
I have a VBA macro which consolidates data from multiple files.
Each time I run the macro, the input files are different.
So, I am annoyed by the "Grant Permissions" request that appears for every file, during each execution of my macro.
I believe it is possible to grant permissions for all files at once using GrantAccessToMultipleFiles.
However, after including GrantAccessToMultipleFiles at the start of my macro, it appears to do nothing and I still have to grant access to every file individually, during the execution of the macro.
Here is an example of what I am trying (or course, there are a lot more files in the actual code):
Please Login or Register to view this content.
Any ideas why it seems to do nothing?
If I ever get this working, I would also like to have it work with a wild card for all files in a certain folder, for example:
Please Login or Register to view this content.
Any thoughts if that is the best approach?
Thanks.
Bookmarks