Upfront, I apologize for my rookie skills in VBA- I am a point and click Macro creator so VBA is new to me. However, I feel I am trying to do something simple and could use some help....
I am trying to create a Macro in Excel (and Access later), to automatically link into an Excel file that is on a shared Google drive. However, when my co worker tries to run the macro, the file path changes because he is on his computer. How do I write the file path to use a * or wildcard to still find the file if the root folder changes?
E.g.
I write the macro referencing a file:
C:\Users\JSmith\Google Drive\Tables\SubTables\Table1.xlsx
My coworker tries to run the macro but it breaks because his file path is:
C:\Users\AWard\Google Drive\Tables\SubTables\Table1.xlsx
I tried:
C:\Users\*\Google Drive\Tables\SubTables\Table1.xlsx
But it didn't work.
Thank you very much for any help.
Andy
I am trying to create a Macro in Excel (and Access later), to automatically link into an Excel file that is on a shared Google drive. However, when my co worker tries to run the macro, the file path changes because he is on his computer. How do I write the file path to use a * or wildcard to still find the file if the root folder changes?
E.g.
I write the macro referencing a file:
C:\Users\JSmith\Google Drive\Tables\SubTables\Table1.xlsx
My coworker tries to run the macro but it breaks because his file path is:
C:\Users\AWard\Google Drive\Tables\SubTables\Table1.xlsx
I tried:
C:\Users\*\Google Drive\Tables\SubTables\Table1.xlsx
But it didn't work.
Thank you very much for any help.
Andy