If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Invoking Notepad Through Vba In Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-17-04, 00:55
Rajkrish9 Rajkrish9 is offline
Registered User
 
Join Date: Mar 2004
Location: CHENNAI
Posts: 1
Exclamation Invoking Notepad Through Vba In Excel

I am trying to invoke a notepad/wordpad through VBA in excel.
Am looking for sample code for the above said requirement.
Trying to write this in a command button.

Private Sub Cmd_1_Click()
Interaction.Shell(notepad.exe,[windowstyle as vbAppWinstyle=vbNormalFocus]) as Double
End Sub

Above is the code where I have written and gave me a syntax error issue.

If any guru can enlighten this and let me know.

Thanks & Regards,
Mohan.
Reply With Quote
  #2 (permalink)  
Old 03-17-04, 03:35
qha_vn qha_vn is offline
Registered User
 
Join Date: Jan 2003
Location: Vietnam
Posts: 188
Shell ("c:\winnt\notepad.exe")
__________________
qha_vn
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On