+ Reply to Thread
Results 1 to 13 of 13

Update image based on listbox selection and fill listbox on workbook open

  1. #1
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Update image based on listbox selection and fill listbox on workbook open

    Couple problems with wookbook,need image to change with searchbox and listbox selection.

    Thanks Z
    Attached Files Attached Files
    Last edited by zplugger; 08-28-2012 at 07:11 AM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Update image based on listbox selection

    Does this work for you?
    Attached Files Attached Files
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Update image based on listbox selection

    It does not change to correct movies. If you go to comedy and one movie comes up in listbox you should click and it will go to correct movie.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Update image based on listbox selection

    Well try this..

    I changed the code to pick the movie name directly. All lookups are now refercned to Cell J9

    Is this something you can work off?
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Update image based on listbox selection

    Yes this is getting closer,can we have it clear the list after button selection. When you open the book all movies is the default and it opens to the first movie in the list. I will play around and try to make chankes. You got it closer to my goal, just a couple little things to fix. If you have time play around with the little problems. Not sure when you do a search it will fill the data in the list box.
    Thank You very much Z

  6. #6
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Update image based on listbox selection

    I got all the bugs out I think, just can't get the workbook to default to filling the listbox with "all movies" on open?

  7. #7
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Update image based on listbox selection

    How about..

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Update image based on listbox selection

    Getting Compile Error Sub or Fuction not defined?

  9. #9
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Update image based on listbox selection

    hi zplugger,

    based on tigeravatar's solution this code seems to work.
    http://www.excelforum.com/excel-gene...html?p=2909860

    Please Login or Register  to view this content.
    However, the ListFillRange for Listbox2 needs to be null. If you can get that to happen on opening the workbook, you'd be home. My lack of knowledge of listboxes combined with VBA fails me here. I am sure some gurus would be able to help you through this

    I'll keep an eye out too!

  10. #10
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Update image based on listbox selection

    Thanks Ace_XL

    Did you try this ?? getting run time error 70 Permission Denied

  11. #11
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Update image based on listbox selection

    Cleared listbox on workbook close, still does not work. This is the last bug to fix I hope.

    Z

  12. #12
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Update image based on listbox selection and fill listbox on workbook open

    Mornings work better for me..
    Try the attached. I did and it works fine at my end.

    This is the code I put in
    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    03-05-2009
    Location
    usa
    MS-Off Ver
    Excel 2016 32Bit
    Posts
    1,173

    Re: Update image based on listbox selection and fill listbox on workbook open

    Thanks Works like a charm.
    Z

+ 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