+ Reply to Thread
Results 1 to 4 of 4

Recall image by image address in cell

  1. #1
    Forum Contributor
    Join Date
    01-02-2007
    Location
    Australia NSW
    MS-Off Ver
    2013
    Posts
    494

    Post Recall image by Directory address in cell

    I have a sheet set up where i fill in details of a report.
    On the sheet i also have code to place a photo/s over a cell if required and size to suit cell.

    When the report is done, i generally print it to pdf.

    Then clear all the data and photo's from the report ready for a new report.
    I do this by using code to save the data into another sheet in a single row across from A1:R1.
    I also save (included in the A1:R1) the photo's location(eg. C:My Documents/My Pictures/Image1.jpg). I store this in the report by using this line of code when the image is selected :
    Please Login or Register  to view this content.
    The photo's themselves are NOT STORED.


    I have a macro set up to narrow down the required report by 3 x Listboxes on a userform. When the value is selected in Listbox3, the selected data is placed back from the stored row, into the original report sheet. (This works Well thus far)

    But my Question is :

    Can i add code to bring the original photo that was in the report back into the report BY USING THE Photo's Location value stored in the cell below the photo ?
    I understand that IF that particular photo was not in it's original folder it would not work, but if unmoved could this be done ?

    EG. Say the stored location of the photo was(C:My Documents/My Pictures/Image1.jpg), and this value was stored in a cell in say R1 int he stored data sheet. Could VBA code select that image and place it back into the sheet ?


    Corey....
    Last edited by coreytroy; 09-03-2007 at 12:06 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Corey,

    Here is an example.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Forum Contributor
    Join Date
    01-02-2007
    Location
    Australia NSW
    MS-Off Ver
    2013
    Posts
    494
    Thanks for the reply Leith.
    Works great.

    Is there a way to also COPY the text from an Excel TextBallon and paste it to a cell ?
    Then do the reverse if need be. (Place a cell's value into an ExcelBallon) ?

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Do you mean a Cell Comment?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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