Chunk
04-08-2016, 11:00 AM
Hello all,
Here is my situation:
I have a userform that performs an open, find and replace, print, then close without saving procedure.
It works on my PC fine since I have all of the files coded with the exact location.
Example:
img_emblem.picture = LoadPicture("C:\DESKTOP\Test\logos\Gif\SSN-756_USS_Scranton_Crest.gif")
or
Set WB = Workbooks.Open("C:\DESKTOP\Test\HistoricalData.xlsx")
I want co-workers to be able to use the userform but have no control on where they store the files.
Is there a way to call the files in a relational way? I know this example DOESNT WORK, but here is what I tried (If the userform is in the DESKTOP directory)
Set WB = Workbooks.Open("\Test\HistoricalData.xlsx")[/
Does that make sense?
Please, any help is greatly appreciated. Thanks in advance.
Chunk
Here is my situation:
I have a userform that performs an open, find and replace, print, then close without saving procedure.
It works on my PC fine since I have all of the files coded with the exact location.
Example:
img_emblem.picture = LoadPicture("C:\DESKTOP\Test\logos\Gif\SSN-756_USS_Scranton_Crest.gif")
or
Set WB = Workbooks.Open("C:\DESKTOP\Test\HistoricalData.xlsx")
I want co-workers to be able to use the userform but have no control on where they store the files.
Is there a way to call the files in a relational way? I know this example DOESNT WORK, but here is what I tried (If the userform is in the DESKTOP directory)
Set WB = Workbooks.Open("\Test\HistoricalData.xlsx")[/
Does that make sense?
Please, any help is greatly appreciated. Thanks in advance.
Chunk