OKay - I have that solved now. I didn't have the module loaded
I have one more question please:
I am using shell execute to print a PDF file. The PDF filename changes based on the value of a text box. For example:
User types 123 in a text box
On clicking the command button, shellexecute runs and opens file c:\MOT\123.PDF
How do I code the filename using the input from the text box?
Private Sub PRINTCERT_Click()
Dim RetVal As Long
On Error Resume Next
RetVal = ShellExecute(0, "open", "C:\Mot\xxx.pdf", "<arguments>", "<run in folder>", SW_HIDE)
End Sub
[/COLOR]Any help appreciated
Bookmarks