Using VBA to find find/copy/paste/position named pictures based on cell values

sputnix

New Member
Joined
Oct 2, 2014
Messages
1
Hi!

Im new to VBA and im doing this little project to get try it out, but no matter how much i google/read about it i cant seem to figure this out. Here is what im trying to do:

I have a spreadsheet where i want to fill in stats from hockey games, who played and whats the score. In two colums i have made lists (data validation) containing all the teams in the league and what i want is the team logo to appear in the cells next to the cell with the team name. Alle the logos are placed on a different worksheet (2), the imagefiles are sized so they fit within the cells in the column they are in. I want to make a makro that searches through the coloumns on where i have the team names (worksheet 1) and when it finds a cell with a team name in it, it will copy the teamlogo (named picture) from the other worksheet, and paste it in the center of the cell next to the name. I want this makro to detect automatically when cells in the "team columns" have been changed (not empty) such that team logos appear right away.

I would be incredibly thankful for any help!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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