Select ActiveCell from Image inside cell.

spacebouncer

Board Regular
Joined
Feb 7, 2014
Messages
109
Hi. I have Table1 in which I want to be able to select a row, and copy the row into a Table2 within another sheet. In one column of the row, I have an arrow image. I've attached a simple macro to the image so that when clicked, the next few columns of the row are copied and inserted into the top of the similar Table2 in another sheet. Essentially this allows me to very quickly select the rows I want from Table1 and copy into Table2. My macro starts with ActiveCell.Offset(, 1).ReSize(1, 7).Copy and works fine. I am able to copy the arrow into alls rows of the table, allowing me to select any row. The problem is I need to choose the ActiveCell which the arrow sits within manually. Is there some coding will allow the macro to recognise what cell the arrow sits within, and thus choose this as ActiveCell? Can't figure this one out myself, but perhaps this is some coding somewhere that associates the image with its location? This is a small issue, but the solution would allow me to create a very elegant program for myself and others to use in Excel and would be much appreciated. Thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
See the TopLeftCell property.
 
Upvote 0

Forum statistics

Threads
1,214,520
Messages
6,120,017
Members
448,937
Latest member
BeerMan23

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