Userform Grid overlay

phagan

New Member
Joined
Dec 1, 2009
Messages
48
I would like to creat an invisible grid overlay or underlay with a picture so that when some one clicks on the picture in a certain area it would save the grid section to the spreadsheet.

example:
Picture with a 9 section grid overlay;
If someone clicks the top right portion of the picture the userform saves a 3 to the spreadsheet.

if someone clicks on the center of the picture it saves a 5 to the cell.

This would be so that we can track which area of parts have the most defects, Is it possible to do this?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
You could either have 9 Pictures and 9 Image_Click events.
Or one Picture and test the x and y arguments of the MouseDown event to decide what value to send to the worksheet.
 
Upvote 0
I hadn't thought of the x y cordinates aspect but for what I want to do that other option would probably work best. As I am going to want to be able to pull up the info on the part later and show with a red overlay which area has the most defects for the month or year.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

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