Results 1 to 6 of 6

Activating MS paint from Excel thru VBA

Threaded View

  1. #1
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Activating MS paint from Excel thru VBA

    Hi,
    Please can somebody help me on how to call MS paint from MS excel (2003) and paste the picture in clipboard to paint and save the file in paint. Following is the macro I wrote in VBA and it is not working.
    Sub EditPics()
     Selection.Copy
     TheEditor = "D:\WINDOWS\system32\mspaint.exe"
     TaskId = Shell(TheEditor, 1)
     AppActivate TaskId
     Application.SendKeys "^{V}", True
     Application.SendKeys "^{S}", True
    End Sub
    Last edited by royUK; 05-27-2009 at 03:44 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1