![]() |
![]() |
![]() |
Start a document based on its filename |
|||
|
Steve McMahon(steve@vbaccelerator.com) |
![]() |
||
|
![]() |
|||
|
01/08/98 |
![]() |
||
Other Tips |
Starting any document file based on its file name only is very simple in Windows
9x and Windows NT using the ShellExecute function. This tip shows how
simple it is - you only really need one declare and one line of code!
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long When you click the command button, the app will create a small text file in the project's path, and then open it with the default application (normally Notepad). |
|||
  |
Related Tips and Articles: |
None. |
![]() |
  |
![]() |
|
About Contribute Send Feedback Privacy
|