Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Location
    CHENNAI
    Posts
    1

    Exclamation Unanswered: 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.

  2. #2
    Join Date
    Jan 2003
    Location
    Vietnam
    Posts
    188
    Shell ("c:\winnt\notepad.exe")
    qha_vn

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •