Copy from Paint to selected cell in Excel

dblwright

New Member
Joined
Mar 15, 2008
Messages
3
Hi Everyone,

I'm a long time Excel user, but I have a really simple problem that drives me crazy. In my job I sometimes put a lot of screen shots into Paint and then copy and paste just the seciton I want into Excel. I do this to document certain things when I am doing a cost estimate. It works great except for it always pastes it to the very top of the Excel sheet, not matter what cell I have selected. So, I paste in, then drag down several pages to get it position where I want it. Is there some option that I need to change?
I'm sure is going to be a really simple fix.

Thanks
JoAnn
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Since no one has given you an answer maybe you will consider this:
An alternative approach (which has been mentioned here I believe) is to include the photograph as a cell 'comment'.

On the cell, right click and select Insert Comment.
Right click on the margin of the comment and select Format Comment
Select the Colors and Lines tab, and on the Color dropdown select the Fill Effects item .
This then gives a Picture tab which allows you to select the appropriate picture. Personally, I always Lock the picture aspect ratio, and generally, you'll want to resize the comment block to show the full picture.

To view the pictures, the user just has to mouse over the cell.
 
Upvote 0
And to do what ndendrinos suggested, i wrote/kludged this code: (gotta have the screenshot saved as a file tho...)
Code:
Sub AddPicInComment()
Dim sfilename As String
sfilename = Application.GetOpenFilename("Image Files (*.png; *.jpg; *.bmp), *.png; *.jpg; *.bmp")
If sfilename = "False" Then
    GoTo 9999
End If
On Error Resume Next
With ActiveCell
    .ClearComments
    .AddComment
    .Comment.Visible = True
    .Comment.Shape.Select True
    Selection.ShapeRange.Fill.UserPicture sfilename
    Selection.ShapeRange.ScaleWidth 6, msoFalse, msoScaleFromTopLeft 'Change Number to suit Width
    Selection.ShapeRange.ScaleHeight 8, msoFalse, msoScaleFromTopLeft 'Change Number to suit Height
    .Comment.Visible = False
End With
9999:
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,051
Messages
6,122,871
Members
449,097
Latest member
dbomb1414

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