[RESOLVED] Finding the path of a file, not the application
I have a "Reflection for IBM Session" that I open, the file location is lets say "C:\Files\" however when I use application.path command I get "C:\Program Files\Reflection\" so I am getting the application that the file is opening up with, is there any way in VBA to get the path of the file that is opened ?
~Many Thank, Bryan J. Casler
Re: Finding the path of a file, not the application
Yes, but which program are you using? Excel, Word, PP?
Excel would be -
Workbook.Path
Word -
Document.Path
Re: Finding the path of a file, not the application
I am running VBA from within a IBM WRQ Reflections Emulator, so none of the above.
Re: Finding the path of a file, not the application
Hmm, never used that one. Anything in its documentation or Object Browser? Try searching Path in each.
Re: Finding the path of a file, not the application
Turned out to be as simple as "CurDir" thanks for the guidance, I had been looking in there all morning, but something you said must have helped me out.