pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
Hi,
Please help me with a vba code to Save as/Extract OLEObjects/file inserted in Worksheet.
the below code inserts the file into the sheet but now i want to be able to use this file by extracting it to a folder in C drive.
Thanks in advance.
Regards Pedie
Please help me with a vba code to Save as/Extract OLEObjects/file inserted in Worksheet.
the below code inserts the file into the sheet but now i want to be able to use this file by extracting it to a folder in C drive.
Thanks in advance.
Regards Pedie
Code:
[/FONT][FONT=courier new] ActiveSheet.OLEObjects.Add(FileName:= _[/FONT]
[FONT=courier new] "C:\Users\x\Desktop\DeskItems\mygif.gif", Link:=False, DisplayAsIcon:= _[/FONT]
[FONT=courier new] True, IconFileName:="C:\Program Files (x86)\Internet Explorer\iexplore.exe", _[/FONT]
[FONT=courier new] IconIndex:=1, IconLabel:="C:\Users\x\Desktop\DeskItems\mygif.gif"). _[/FONT]
[FONT=courier new] Select[/FONT]
[FONT=courier new] Range("K14").Select[/FONT]
[FONT=courier new] ActiveWorkbook.Save