Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6109795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:26:39+00:00 2026-05-23T14:26:39+00:00

I am trying to develop a macro that after click on a picture, will

  • 0

I am trying to develop a macro that after click on a picture, will do v-lookups on a bunch of cells in a given row.

For example:

  • If I click on a cell in Row 10 and then I click on a picture of a poodle (located somewhere in the sheet, not in Row 10), row 10 will be populated with “animal” in one cell, in the next cell “dog”, and in the next cell “poodle”

  • And then I click on a cell in Row 11, and then I click on a picture of a palm tree (located somewhere in the sheet), row 11 will be populated with “plant” in one cell, in the next cell “tree”, and in the next cell “palm tree”

Any ideas?
Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:26:39+00:00Added an answer on May 23, 2026 at 2:26 pm

    Create a macro in a regular module to handle the image clicks, and assign it to all of your images’ “onaction” property using Right-click >> Assign macro (or in code)

    Sub ImageClick()
      Dim rngLookup As Range
      Dim ImgName As String
      ImgName = Application.Caller
    
      Set rngLookup = ThisWorkbook.Sheets("Lookup").Range("A2:D20")
      With Selection.Cells(1).EntireRow
        .Cells(1).Value = ImgName
        .Cells(2).Value = Application.VLookup(ImgName, rngLookup, 2, False)
        .Cells(3).Value = Application.VLookup(ImgName, rngLookup, 3, False)
        .Cells(4).Value = Application.VLookup(ImgName, rngLookup, 4, False)
      End With
    End Sub
    

    As Chris suggested, use a lookup table to fill the values in the selected row: in this case though it’s based on the name of the image on the sheet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to develop an application that will use getImageData in javascript in Firefox
I am trying to develop a BlackBerry application that will show data from an
I'm trying to develop a JS function that creates a new row each time
I am trying develop a basic referrer system to my Django website, system will
I'm trying to develop a firefox extension that inserts additional HTTP header fields into
Trying to develop using MVVM: I have this Csla.PropertyStatus control that is created in
I am trying to develop programs which will work for nokia mobile phones. I
I am trying to develop a plugin architecture in .Net. The application will be
I've been trying to develop a linq query that returns the ItemNumber column of
I am trying to develop a simple map application, which will display a map

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.