I have a code in LS that opens a MS Word template, fill in some variables from fields on my Notes form, and save the MS Word object on my file server
SavePath = "S:\INTRANETT\ISO 9000\REF\CAR"
SaveName = SavePath + “CAR " + + " (” + IntRefNumber + “)”
worddoc.saveas(CAR_SaveName)
I keep the document open because I need to fill in some more information by hand
word.visible = True
Then I clear the instance from memory
Set word = Nothing
On my Notes form I have a Rich Text field (the field with a premade attach document possibility - Rich Text Light ?) and after I have finished the MS Word document I have to manually attach the document.
I need some help (preferably with some code snippets) to understand how I can program this. Since I have to do some manual work on the Word document I cannot do the attach process directly but since I know the exact path and name of the document I only want one-click possibility in my form.
E.g
click on one button to get the document from the file system into the rich text field.
Hope someone can help me with this.