Cutting and Pasting

BMD

Board Regular
Joined
Oct 5, 2005
Messages
211
Hi All,

I need to paste an image to Excel and when I do it pastes each of the objects that make up the image, but I only want the image. In the special paste I have HTML, Unicode Text, and Text, what I need is image.

The following is the code that is working just the ActiveSheet.Paste needs to be ActiveSheet.SpecialPaste.Image or something like that.
Code:
    HTMLDiv("AppMessageEditCheckControl", tpAttachNoWait).Attach

        HTMLBrowser("Caption='.NET ProMerit Dev Client'").Attach
        HTMLDiv("AppMessageEditCheckControl").MouseDown 1, 1
            w = HTMLDiv("AppMessageEditCheckControl").Width - 1
            h = HTMLDiv("AppMessageEditCheckControl").Height - 30
        HTMLDiv("AppMessageEditCheckControl").MouseUp w, h

    HTMLDiv("AppMessageEditCheckControl").Attach
        HTMLDiv.Type "{Ctrl C}"

    R = R + 2
    writeExcel R, 1, "Results Image"
    Range("A" & R + 1).Select
    ActiveSheet.Paste
    
    'BOTTOM
    X = 0
    Window("Net ProMerit").Attach
Any pointes?
BMD
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Is there another way to paste an image from the clipboard to excel as a image and not have it converted to objects in cells?
 
Upvote 0
Hi All,
It’s me again. I’m trying to paste an image to excel without having it converted to objects or cells, just a bmp. About the only way is to use a secondary tool like HyperSnap and that will allow the image to be pasted as an image and to objects.

Is there an easier way?
BMD
 
Upvote 0

Forum statistics

Threads
1,226,283
Messages
6,190,048
Members
453,591
Latest member
plengeb

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top