Hello,
I'm working on some macros in Visual Basic v6.5 and I need some help! I currently have some macros that insert files into a generic template document to make it customer specific. However, these macros use a hard-coded location on our server to locate the files and I want to change this.
What I want is for the macro to detect the location of the open word document (generic template) and set this as the default directory so other files that get inserted via macros (located in the same folder as the open word document) can be inserted without having to provide a hard-coded location. The reason we want to do this is because the folder which contains all these files may be moved around or moved to a new server and we want to avoid the hassle of re-programming every time a move is made.
Is there any hope for me?
Thanks so much,
Naomi
I'm working on some macros in Visual Basic v6.5 and I need some help! I currently have some macros that insert files into a generic template document to make it customer specific. However, these macros use a hard-coded location on our server to locate the files and I want to change this.
What I want is for the macro to detect the location of the open word document (generic template) and set this as the default directory so other files that get inserted via macros (located in the same folder as the open word document) can be inserted without having to provide a hard-coded location. The reason we want to do this is because the folder which contains all these files may be moved around or moved to a new server and we want to avoid the hassle of re-programming every time a move is made.
Is there any hope for me?
Thanks so much,
Naomi