Results 1 to 4 of 4

Thread: Using Excel Macro to open images

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2011
    Posts
    27

    Using Excel Macro to open images

    Hi,

    I have used excel to create a movie list which contains about 3000 movie's in range A9 to about A3000 if that makes sense, I would like to link an image to each movie so that the user can right click and choose the option to 'View Cover' and the image corresponding to that movie would be displayed. Do you have any idea about how I should go about doing this?

    Andrew

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Using Excel Macro to open images

    how do you want to view the cover, within excel or to open the default viewer for image files of that type?

    for the latter use shellexecute API (many examples in this forum), if the former, you would need some image container, in your worksheet or a userform, to show the image in
    Last edited by westconn1; Nov 21st, 2011 at 03:51 PM.
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Sep 2011
    Posts
    27

    Re: Using Excel Macro to open images

    Yes, I would like to be able to view the image from within excel, would you please be able provide me with any extra information about linking each movie with a certain image file?

    Thanks

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Sep 2011
    Posts
    27

    Re: Using Excel Macro to open images

    Quote Originally Posted by westconn1 View Post
    you would need some image container, in your worksheet or a userform, to show the image in
    Do you have any ideas about how i could do this? Thanks (:

Posting Permissions

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



Click Here to Expand Forum to Full Width