Quote:
Private Declare Function ShellExecute Lib "shell32.dll" Alias _
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpszOp As _
String, ByVal lpszFile As String, ByVal lpszParams As String, _
ByVal lpszDir As String, ByVal FsShowCmd As Long) As Long
StartDoc = ShellExecute(Scr_hDC, "Open", DocName, _
"i am word", "C:\", SW_SHOWNORMAL)
Excell and Word have this code in their macro. But.... I do not know how I can let my program see the line "I am Word". I already tried calling a msgbox with lpszParams in it, but it didn't work.