How to start wordpad via a button in a custom form? 
Author Message
 How to start wordpad via a button in a custom form?

I have a custom form and I wanna add a button that start automatically
wordpad with a specific file. Is that possible and how can I add the code?

Thank,

Niek



Sat, 31 Aug 2002 03:00:00 GMT  
 How to start wordpad via a button in a custom form?
Create a custom component in Visual Basic that you can call from VBScript in
your form. Essentially the COM component is a wrapper for the Shell function
in VB.

--
Regards,

Randy Byrne, MVP - Outlook
http://www.microeye.com
http://www.outlookexchange.com
Building Applications with Microsoft Outlook 2000
Microsoft Press, June 1999
http://www.microeye.com/books
Micro Eye ZipOut
http://www.microeye.com/zipout


Quote:
> I have a custom form and I wanna add a button that start automatically
> wordpad with a specific file. Is that possible and how can I add the code?

> Thank,

> Niek



Sat, 31 Aug 2002 03:00:00 GMT  
 How to start wordpad via a button in a custom form?
Can you elaborate with an example of how that is done or point me in the
right direction on where to look up information on custom components and
COM. I'm trying to run some procedures from Outlook that I have in Access
and I'm having a tough time getting the Access Application to get the focus.
If I can call it from Outlook directly, that would be great.

Thanks.

Kevin McGee


Quote:
>Create a custom component in Visual Basic that you can call from VBScript
in
>your form. Essentially the COM component is a wrapper for the Shell
function
>in VB.

>--
>Regards,

>Randy Byrne, MVP - Outlook
>http://www.microeye.com
>http://www.outlookexchange.com
>Building Applications with Microsoft Outlook 2000
>Microsoft Press, June 1999
>http://www.microeye.com/books
>Micro Eye ZipOut
>http://www.microeye.com/zipout



>> I have a custom form and I wanna add a button that start automatically
>> wordpad with a specific file. Is that possible and how can I add the
code?

>> Thank,

>> Niek



Sat, 31 Aug 2002 03:00:00 GMT  
 How to start wordpad via a button in a custom form?
Try this...
Sub WordPad()
     Set wshShell = CreateObject("Wscript.Shell")
     wshShell.Run "wordpad.exe"
     Set wshShell = Nothing
End Sub

It will start WordPad, but don't know how to start a particular saved file.
Good luck!
Joe B.


Quote:
> I have a custom form and I wanna add a button that start automatically
> wordpad with a specific file. Is that possible and how can I add the code?

> Thank,

> Niek



Thu, 19 Sep 2002 04:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Create a button to start a new message w/custom form

2. Open a custom form with a module-button (not a toolbar button)

3. Add custom button to TaskItem via JScript?

4. Start WordPad as object

5. Starting WordPad

6. starting a macro from an outlook custom form

7. Setting Start field on custom form

8. Can you start a custom form from vbscript?

9. Opening A Custom Form via Code

10. Reference and Open Custom form via VBA

11. Using WordPad via OLE

12. how to get custom form and send custom form from VB

 

 
Powered by phpBB® Forum Software