
09-26-2002, 08:40 AM
|
|
Freshman
|
|
Join Date: Apr 2002
Location: Massachusetts
Posts: 35
|
|
Pass variable from word to VB
|
I have a word document and in it there is a button that runs a VB program that grabs attachments and creates a basic e-mail including the word document.
My problem is the program needs to check and make sure the word document is saved and not still the template. Second it needs to check the folder where the document is saved to see if there is a valid .pdf to also attach.
I can make this real simple, the first 9 characters of the saved word name is the folder name. So I just need a way to pass the word file name to my vb program at execution. Once I get it in VB I can do all the manapulation to the string to get the folder name.
Hope this makes sense, thanks.
|
|