Hi all,
I'm trying to write some code so that the user can enter a material number and print out and log sheet made in Excel. (the easy part) But I also wanted to have an option to be able to print out a procedure (word doc) as well. (the hard part)
The issue I have is that the doc name may change but it will always have the material number as part of the name.
I borrowed some code from another post and came up with what's below. It works for the most part. It will find the file name with the wildcard.
The problem I'm having is that it keeps looking at the C:\ drive instead of our network drive (g:\) when it tries to open it up in word.
How can I get it to look at the full path?
Eventually, I will not have the message box or word visible. I would like it just to print the doc file in the background.
Please Login or Register to view this content.
Thanks in advance,
Randy
Bookmarks