Hi everyone,
Thanks for taking the time to look at my thread.
As the title says, I want to copy and paste a table when clicking on a hyperlink.
I have tried this:
Reason being I have multiple tables with different items, and "ITEM 1" is only 1 of about 450 in my master sheet. Each of these tables does include a picture, but the pic didn't copy when I tried this. I'll be using photos in my master sheet.
How I would like this to work:
Click the hyperlink in the table at the top of the sheet.
When clicked, the corresponding table for the item is copied to L3.
So in the larger tables with items, the item names will match those of the item table.
I tried to do more than the one, but it stopped working. I have no VBA skills as yet, maybe a very very very little bit.
If anyone can help me out on this one, I'd be very grateful.
Thanks in advance!
Thanks for taking the time to look at my thread.
As the title says, I want to copy and paste a table when clicking on a hyperlink.
I have tried this:
Code:
Private Sub Worksheet_FollowHyperlink_Item1(ByVal Target As Hyperlink)
If Target.TextToDisplay = "ITEM 1" Then
Sheet1.Range("P11111111").Copy
Sheet1.[L3].PasteSpecial
End If
End Sub
Reason being I have multiple tables with different items, and "ITEM 1" is only 1 of about 450 in my master sheet. Each of these tables does include a picture, but the pic didn't copy when I tried this. I'll be using photos in my master sheet.
How I would like this to work:
Click the hyperlink in the table at the top of the sheet.
When clicked, the corresponding table for the item is copied to L3.
So in the larger tables with items, the item names will match those of the item table.
I tried to do more than the one, but it stopped working. I have no VBA skills as yet, maybe a very very very little bit.
If anyone can help me out on this one, I'd be very grateful.
Thanks in advance!
Attachments
Last edited: