|
-
Feb 8th, 2001, 09:42 AM
#1
Thread Starter
New Member
Hi,
I am building a little program that will be started from either Excell or Word. I already got a general idea how I can let my program know if Excell or Word is running.
I am using this code:
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.
Any suggestions ?
Drive read error (A)bort, (R)etry, (S)lap nearest bystander
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|