+ Reply to Thread
Results 1 to 2 of 2

Create a 'click map' on an image

  1. #1
    Registered User
    Join Date
    11-07-2013
    Location
    near Brussels, Belgium
    MS-Off Ver
    Excel 2010
    Posts
    6

    Question Create a 'click map' on an image

    Hi all,

    I have been making some sort of database in excel that uses VBA queries to enter new datapoints. Without going too much into detail here, each of those datapoints gets defined by a couple of 'general' characteristics and also a couple of more individual characteristics. Afterwards, it uses VBA to help the user isolate a selection of datapoints based on a parameter of his choise. This in turn fills out an automated report sheet that gives me the graphs I need.

    So far, all of that works more or less the way I want it too. The problem is that I want to add one final characteristic to each datapoint: a location on an image.

    Basically I am looking for a way to use a userform that displays an image. The purpose here is to let the user click on a location on the image and that location (X, Y coordinates of the mouse over the image) should be stored in the database for each click.
    This is the first step and if I could get this working, it would already be such a big help.
    The final step is that I should be able to display the locations of a selection of datapoints on the image as seperate single red dots for example.

    I have been searching the internet for information how to do this. The closest I got is this site: http://www.josluyendijk.nl/Entertain...ConvHtml5.html which makes me believe it is possible. But my VBA/userform knowledge is too basic for me to get this example working, let alone to adapt it to what I need. I was hoping to recieve some help from this community.

  2. #2
    Registered User
    Join Date
    11-07-2013
    Location
    near Brussels, Belgium
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Create a 'click map' on an image

    After some further research, I'm trying to put the pieces of the puzzle together. Here is what I have so far:

    I created a userform (userform1) with a big button. Instead of text I load an image on that button, the image I want to click on.

    worksheet code:
    Please Login or Register  to view this content.
    Userform1 code:
    Please Login or Register  to view this content.
    Like it says in the code: I need to find a way to retrieve the x.pos and y.pos values in that first sub. I can write the values to cells and read them ion the main sub again to load x and y, but there must be an easier way to do this.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to popup image on click in a cell
    By mani_bbc05 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-20-2013, 04:09 PM
  2. Replies: 0
    Last Post: 10-11-2012, 04:18 AM
  3. on click of an image excel
    By Ranjani in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-12-2009, 05:44 PM
  4. Counter Macro On Image Click
    By Kolin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-04-2009, 12:13 PM
  5. Image Invisible. Click
    By shapper in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2008, 04:15 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1