+ Reply to Thread
Results 1 to 3 of 3

Can't Paste into Paint, any suggestions?

  1. #1
    Registered User
    Join Date
    06-29-2005
    Location
    Boston, MA
    Posts
    56

    Can't Paste into Paint, any suggestions?

    Copying a range from Excel to Paint,
    and then saving Paint in Png format. . . but can't get past just pasting.

    Please Login or Register  to view this content.
    any help is appreciated

    sportsguy

  2. #2
    Tim Williams
    Guest

    Re: Can't Paste into Paint, any suggestions?


    Try

    Range("ExecutiveSummarywFcst").CopyPicture

    Tim

    "sportsguy" <[email protected]> wrote in message
    news:[email protected]...
    >
    > Copying a range from Excel to Paint,
    > and then saving Paint in Png format. . . but can't get past just
    > pasting.
    >
    >
    > Code:
    > --------------------
    >
    > Public Sub Paste2Paint()
    >
    > On Error Resume Next
    >
    > Dim ActivatePaint
    > ActivatePaint = Shell("c:\WINDOWS\system32\mspaint.exe", 1)
    > ThisWorkbook.Activate
    > Range("ExecutiveSummarywFcst").Select
    > Application.CutCopyMode = False
    > Selection.Copy
    > AppActivate ActivatePaint
    >
    > SendKeys "^V"
    > SendKeys "^S"
    >
    >
    > End Sub
    >
    >
    > --------------------
    >
    >
    > any help is appreciated
    >
    > sportsguy
    >
    >
    > --
    > sportsguy
    > ------------------------------------------------------------------------
    > sportsguy's Profile: http://www.excelforum.com/member.php...o&userid=24771
    > View this thread: http://www.excelforum.com/showthread...hreadid=557989
    >




  3. #3
    Registered User
    Join Date
    06-29-2005
    Location
    Boston, MA
    Posts
    56

    No Difference

    I want to copy a range of formatted cells,

    mspaint starts, but Excel VBA can't manipulate it with send keys, or I can't set the focus correctly.

    any suggestions?

    sportsguy

+ Reply to Thread

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