+ Reply to Thread
Results 1 to 9 of 9

Show Preview/thumbnail of a linked photo/JPG via network on mouse hover (parts list)

  1. #1
    Registered User
    Join Date
    03-16-2020
    Location
    Lincolnshire
    MS-Off Ver
    Windows 10: 64 bit
    Posts
    14

    Show Preview/thumbnail of a linked photo/JPG via network on mouse hover (parts list)

    Hello -

    I have a large list of machinery parts that all have at least one (and in some cases two or three) linked photo/s assigned to each. I'd like to be able for other users of the sheet to hover over the linked network path and see a preview of the part in question. These are linked JPG images from elsewhere on a server.

    I'm aware of the 'filled comment box' to allow this, but I have about 600 images and don't want to tackle it one-by-one due to time constraints. Is there any way this could be done? I know it can be set up to preview online photos, i.e via a URL, but all these images have a file///\\network-01\folder\photos type address location??

    Any help is appreciated. VBA is probably required but would like a reasonably simple solution if poss as the sheet and data in it is likely to grow quickly.

    Thanks,

    Stuart

  2. #2
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2402-17328.20068
    Posts
    1,361

    Re: Show Preview/thumbnail of a linked photo/JPG via network on mouse hover (parts list)

    Hi Stuart,

    I have created an attachment that shows how the adding an image to a comment box can be automated.
    The file downloads an online image and saves it in the Temp folder - it then points the comment box to that image - the image is then deleted from the Temp folder. You are left with a bunch of online image paths with a comment for the picture that was captured. You can play with the ScaleImage value (currently 4) to make the images smaller or larger.

    Just as an FYI the link: https://picsum.photos/200 will load a random image, these links can be relaced with real online file links.

    Hope this helps
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-16-2020
    Location
    Lincolnshire
    MS-Off Ver
    Windows 10: 64 bit
    Posts
    14

    Re: Show Preview/thumbnail of a linked photo/JPG via network on mouse hover (parts list)

    Thanks Cheesesandwich.

    Unfortunately it is saying that the file's code must be updated to work on 64 bit systems.

    Something to do with a ‘Declare function’? It highlights the declare term in the VBA when it errors...

    Thanks

  4. #4
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    252

    Re: Show Preview/thumbnail of a linked photo/JPG via network on mouse hover (parts list)

    Replace all instances of;
    Please Login or Register  to view this content.
    With;
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-16-2020
    Location
    Lincolnshire
    MS-Off Ver
    Windows 10: 64 bit
    Posts
    14

    Re: Show Preview/thumbnail of a linked photo/JPG via network on mouse hover (parts list)

    Thanks all -

    I can get it to work in its original incarnation and add in my own links and pictures too and it works a treat, however as soon as I try and transfer the module and references into the actual sheet I need it for, it errors saying it can't find 'PicturePath' in the module box. "CommentBox.Shape.Fill.UserPicture PicturePath " Run-time error, the specified file wasn't found.

    I don't even know how you could change this path? As it will be used by different users, the temp file needs to be basic and/or allow for flexibility and not error? It directs to AppData folder at the mo but we might have permissions issues etc for some folders?

    Thanks for your help so far.

    Stuart

  6. #6
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    252

    Re: Show Preview/thumbnail of a linked photo/JPG via network on mouse hover (parts list)

    That means the URLs for the images you provided are incorrect.

  7. #7
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2402-17328.20068
    Posts
    1,361

    Re: Show Preview/thumbnail of a linked photo/JPG via network on mouse hover (parts list)

    You could try putting your links into my spreadsheet and see if you get the error - if you do then it will be the link that is at fault as @PrizeGotti stated above. You can also put the link into a web browser - if it does not download or load a picture the it is an issue.

    As for the Temp folder - you can hard code that to any folder of your choice that all the users do have access to.

  8. #8
    Registered User
    Join Date
    03-16-2020
    Location
    Lincolnshire
    MS-Off Ver
    Windows 10: 64 bit
    Posts
    14

    Re: Show Preview/thumbnail of a linked photo/JPG via network on mouse hover (parts list)

    Thanks, I'll give it a go - At the moment the links are part of a formula, whereas I used hard absolute text before in the main sheet (which did work), so I'll adapt the same

  9. #9
    Registered User
    Join Date
    03-16-2020
    Location
    Lincolnshire
    MS-Off Ver
    Windows 10: 64 bit
    Posts
    14

    Re: Show Preview/thumbnail of a linked photo/JPG via network on mouse hover (parts list)

    Thanks both - there were 4 dead links in the 500+ images and it worked after this..

    Thanks very much

+ 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. [SOLVED] User form linked to Macro to show print preview
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-29-2021, 04:21 AM
  2. Insert photo thumbnail in a cell
    By bubbasezso in forum Excel General
    Replies: 0
    Last Post: 02-08-2021, 10:50 PM
  3. Hover Text Linked to a Data Validation List
    By Henny1986 in forum Excel General
    Replies: 5
    Last Post: 11-18-2020, 09:33 AM
  4. [SOLVED] Tool tips no longer show upon mouse hover over Quick Access toolbar icons
    By FlameRetired in forum Excel General
    Replies: 3
    Last Post: 02-11-2019, 01:46 AM
  5. Replies: 0
    Last Post: 10-16-2016, 10:48 PM
  6. How to show description texts when mouse hover over items in a dropbox?
    By tnuis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2014, 10:35 AM
  7. Preview Thumbnail of .XLS....?
    By Andrew in forum Excel General
    Replies: 2
    Last Post: 10-12-2005, 08:05 PM

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