2010 VBA linking image instead of embedding it

zduris

New Member
Joined
Aug 8, 2011
Messages
2
Hi. I'm stomped. I wrote a nifty vba in Excel 2007 that lets people ebmbed an image from their c: drive as a proof that they've seen the and approve the spreadsheet. Everyone has their unique image on their c: drive, they click a button, and bam the image shows up...
We recently upgraded to excel 2010. My problem is that excel 2010 creates a link to the image rather than embeds it. So when I look at who approved the document, all the "signatures" are linked to my c: drive showing my unique image....help please! Here's the code I used:

ActiveSheet.Pictures.Insert ("c:\signature.Jpg")
ActiveSheet.Pictures(ActiveSheet.Pictures.Count).Select
With Selection
.ShapeRange.LockAspectRatio = msoFalse
.Height = 32
.ShapeRange.Width = 160
.Top = ActiveCell.Top + 3
.Left = ActiveCell.Left + 20
.Placement = xlMoveAndSize
End With

Thanks,
-Z-
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Thanks, I finally got around it by copying the image and pasting it back in without the link...here's the code I used.

ActiveSheet.Pictures.Insert ("H:\signature.Jpg")

ActiveSheet.Pictures(ActiveSheet.Pictures.Count).Select
ActiveSheet.Pictures(ActiveSheet.Pictures.Count).Copy
ActiveSheet.Pictures(ActiveSheet.Pictures.Count).Delete
ActiveSheet.PasteSpecial Format:="Picture (JPEG)", _
Link:=False, DisplayAsIcon:=False
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

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