|
-
Jan 13th, 2000, 12:18 PM
#1
Hi
I have a programme that creates a notepad document, log.txt. I want this document to be opened in Excel and don't want to see log.txt. I'm not sure why it has to go to Excel but Big Boss says that's where it has to go!
Thanks in advance
V
-
Jan 13th, 2000, 12:23 PM
#2
Have you tried Shelling Excel with the Log.txt File as a CommandLine Parameter? ie.
Code:
Private Sub Command1_Click()
Call Shell(Chr(34) & "C:\Program Files\Microsoft Office\Office\Excel.exe" & Chr(34) & " C:\Log.txt", vbNormalFocus)
End Sub
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
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
|