+ Reply to Thread
Results 1 to 11 of 11

List box to display empty price

  1. #1
    Registered User
    Join Date
    02-06-2019
    Location
    Colorado
    MS-Off Ver
    2016
    Posts
    8

    List box to display empty price

    Hello all,
    I am working on a macro that uses a list box to return a price and discount rate. I have it working as a double click operation, but I want the display boxes to be empty when the user single clicks on something in the list box. I currently get an object error. Any ideas on how to fix this?
    Please Login or Register  to view this content.
    I am still getting the error code "run time error '424' Object required" With this updated code.
    Last edited by alexWhit21; 02-28-2019 at 03:26 PM. Reason: Updated Code

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: List box to display empty price

    You're setting strings try:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    02-06-2019
    Location
    Colorado
    MS-Off Ver
    2016
    Posts
    8

    Re: List box to display empty price

    I still get the error code "run time error '424' Object required". Do you know what object I am missing?

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,083

    Re: List box to display empty price

    .Text is "read only", you need to change it to .Value

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: List box to display empty price

    Unless Fluff is right I would expect "shtComputers" to be your undefined object.

    Thanks for the rep!

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,083

    Re: List box to display empty price

    Thanks for the Rep.
    I assume that all is well?

  7. #7
    Registered User
    Join Date
    02-06-2019
    Location
    Colorado
    MS-Off Ver
    2016
    Posts
    8

    Re: List box to display empty price

    Ehhh, I still get the same error, but this is for a class so I'm just going to ask my professor in office hours. I'll post the final code then mark the thread as solved after talking to him.

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: List box to display empty price

    Maybe:

    Please Login or Register  to view this content.

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,083

    Re: List box to display empty price

    You'll still need to change the Text to Value

  10. #10
    Registered User
    Join Date
    02-06-2019
    Location
    Colorado
    MS-Off Ver
    2016
    Posts
    8

    Re: List box to display empty price

    Please Login or Register  to view this content.
    This is what my professor told me was correct. Thank you to everyone for the help!

  11. #11
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: List box to display empty price

    You're welcome and thanks for the feedback!

+ 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: 2
    Last Post: 11-17-2018, 03:15 AM
  2. [SOLVED] Pull the maximum price based on the Drop-down value in a price list
    By Max_excel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-11-2018, 05:46 AM
  3. Replies: 3
    Last Post: 09-12-2015, 10:42 AM
  4. Cell to display price when linked to drop down list
    By Solo Sails in forum Excel General
    Replies: 2
    Last Post: 06-27-2011, 03:50 PM
  5. Question abuot creating a price quote from a long price list
    By glennchung in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-02-2009, 03:49 PM
  6. Replies: 1
    Last Post: 04-10-2006, 08:15 AM
  7. base price list compute on to another price list? on excel work sh
    By excel spread sheet in forum Excel General
    Replies: 0
    Last Post: 03-29-2006, 01:25 PM

Tags for this Thread

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