Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Paste Picture Link Macro?

Status
Not open for further replies.

cosmicchris

Programmer
Jul 3, 2003
18
GB
I need to write a macro to paste picture links from one sheet to another in MS Excel.
This is not difficult to accomplish for a once only task from the same location in the source sheet to the same location in the destination sheet.
What I want to do is automate the operation with a macro which will prompt the user to enter the start cell in the source sheet and the destination cell in the destination sheet. My VBA skills are somewhat rudimentary but since I use it infrequently I can't justify a training course. This is what I've managed so far with the macro recorder. As you'll surmise the active cell has to be correct in each sheet and this makes it a chore for the user.

Sub
Sheets("Data").Select
Range("C2:E3").Select
Selection.Copy
Sheets("Trans").Select
ActiveSheet.Pictures.Paste(Link:=True).Select
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top