Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to Open a notepad from VBA....Urgent

How to Open a notepad from VBA....Urgent

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    winpoorni
    wrote on last edited by
    #1

    Hi all, Im Working with Excel Macro facility. i need to write some text in notepad.how can i open a notepad from vba.. (in VBA we can add commondialog control box and open a notepad.. i need some other way) Help ME Thanks n Regards, Ramya.R -- modified at 4:04 Friday 24th February, 2006

    D 1 Reply Last reply
    0
    • W winpoorni

      Hi all, Im Working with Excel Macro facility. i need to write some text in notepad.how can i open a notepad from vba.. (in VBA we can add commondialog control box and open a notepad.. i need some other way) Help ME Thanks n Regards, Ramya.R -- modified at 4:04 Friday 24th February, 2006

      D Offline
      D Offline
      Divya Rathi
      wrote on last edited by
      #2

      /*The following code Opens notepad when a key is pressed . When the up key is pressed , notepad will open */ Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer) Dim keyPress As Double If KeyCode = vbKeyUp Then keyPress = Shell("notepad.exe", vbNormalFocus) End If End Sub Divya Rathi

      W 1 Reply Last reply
      0
      • D Divya Rathi

        /*The following code Opens notepad when a key is pressed . When the up key is pressed , notepad will open */ Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer) Dim keyPress As Double If KeyCode = vbKeyUp Then keyPress = Shell("notepad.exe", vbNormalFocus) End If End Sub Divya Rathi

        W Offline
        W Offline
        winpoorni
        wrote on last edited by
        #3

        Thanks Divya, I use VBA in Macro level..still no forms are used... by using shell("notepad.exe") command i open the Note pad.. I need to append the data to that opened Notepad and save that file... Help me Please.. Thanks in advance.... Thanks n Regards, Ramya.R -- modified at 4:10 Friday 24th February, 2006

        S D 2 Replies Last reply
        0
        • W winpoorni

          Thanks Divya, I use VBA in Macro level..still no forms are used... by using shell("notepad.exe") command i open the Note pad.. I need to append the data to that opened Notepad and save that file... Help me Please.. Thanks in advance.... Thanks n Regards, Ramya.R -- modified at 4:10 Friday 24th February, 2006

          S Offline
          S Offline
          sathish s
          wrote on last edited by
          #4

          this shd be useful http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnofftalk/html/office09072000.asp

          1 Reply Last reply
          0
          • W winpoorni

            Thanks Divya, I use VBA in Macro level..still no forms are used... by using shell("notepad.exe") command i open the Note pad.. I need to append the data to that opened Notepad and save that file... Help me Please.. Thanks in advance.... Thanks n Regards, Ramya.R -- modified at 4:10 Friday 24th February, 2006

            D Offline
            D Offline
            Divya Rathi
            wrote on last edited by
            #5

            why do u explictly need to create notepad ? coz if u want to save data from some text box then there are many file handling operations are there. Divya Rathi

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups