+ Reply to Thread
Results 1 to 2 of 2

Load web image when cell holding URL is clicked/double-clicked

  1. #1
    Registered User
    Join Date
    06-04-2008
    Posts
    13

    Load web image when cell holding URL is clicked/double-clicked

    I have a column (A) of urls with web-based images (jpgs). When I double click on a particular cell holding a URL (ex. A2) i would like that image to be displayed (always in the same place, either always in cell C6 or an absolute position, [but not move vertically in a corresponding cell [ie B2, B3, B4 B...).

    My current code goes through all URLs in the worksheet and pulls in all images rather than only the ones in which i click.

    Please Login or Register  to view this content.
    Last edited by jchamber00; 08-21-2013 at 07:12 PM. Reason: SOLVED

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Load web image when cell holding URL is clicked/double-clicked

    Right-click the sheet tab and select VIEW CODE, then paste in this self-activating event macro:

    Please Login or Register  to view this content.

    Once installed it will insert any picture URL double-clicked in column A in cell B5. You won't be able to edit column A URLs by double-clicking, you'll have to single click and press F2 to edit them.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Replies: 4
    Last Post: 09-11-2012, 12:47 PM
  2. [SOLVED] Record time stamp once cell is double clicked
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-17-2012, 09:23 AM
  3. If a cell containing a specific term is double clicked then
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2012, 01:08 AM
  4. [SOLVED] Load UserForm if cell is clicked in range A2:A200
    By stojko89 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-06-2011, 06:15 AM
  5. Change cell value when right-clicked/double-clicked
    By grime in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-17-2005, 09:05 AM

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