I tried seeking help on ExcelForum.com but my post very quickly fell to the second page with no responses. Hopefully you all can help me out, it would greatly appreciated.
I am currently working on a project that requires me to screen capture web pages and then paste the images into a spread sheet, resized to 40% of their original size. Currently I have code in place that allows me to press Control E to resize a selected image. I would like to, instead, have the image automatically paste in at 40%. Either that or code that will paste, select, and then resize. I don't know how to select the pasted image and resize it using code though, as I'm not sure how to select the image once it's pasted.
Here is what I have so far, which works in that I have to select the pasted object and run the macro:
THANKS!!
<!-- BEGIN TEMPLATE: bbcode_quote -->
I am currently working on a project that requires me to screen capture web pages and then paste the images into a spread sheet, resized to 40% of their original size. Currently I have code in place that allows me to press Control E to resize a selected image. I would like to, instead, have the image automatically paste in at 40%. Either that or code that will paste, select, and then resize. I don't know how to select the pasted image and resize it using code though, as I'm not sure how to select the image once it's pasted.
Here is what I have so far, which works in that I have to select the pasted object and run the macro:
Sub resizeImages()
Selection.ShapeRange.ScaleWidth 0.63, msoFalse, msoScaleFromTopLeft
Selection.ShapeRange.ScaleHeight 0.63, msoFalse, msoScaleFromTopLeft
End Sub
THANKS!!
<!-- BEGIN TEMPLATE: bbcode_quote -->