+ Reply to Thread
Results 1 to 3 of 3

Change userform listbox border with change event

  1. #1
    Registered User
    Join Date
    07-25-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    7

    Question Change userform listbox border with change event

    I am trying to create a userform that has all the fields highlighted until a user makes a selection. I have been trying to do this by changing the border color from red to gray with a change event, but it isn't working.

    I can change the listbox formatting with a UserForm_Initialize

    Please Login or Register  to view this content.
    This works. But when I use a listbox click or change event, it does nothing.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Can anyone point out what I am doing wrong? Why can I change the format of the listbox on initialize, but not on a change or click event?

  2. #2
    Forum Contributor Cerbera's Avatar
    Join Date
    07-06-2010
    Location
    Rotorua, New Zealand
    MS-Off Ver
    Excel 2007, 2013, 2016 & 365
    Posts
    137

    Re: Change userform listbox border with change event

    I don't know if there is any limitation outside of the "initialise" event, I'm sure someone else will know the answer on that(?).

    As a (far from ideal) alternative could you store the variables and reinitialise the form with the updated formatting?
    If I've helped please click on *Add Reputation

  3. #3
    Registered User
    Join Date
    07-25-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    7

    Re: Change userform listbox border with change event

    Thanks for your reply. I had that idea myself, but decided it wasn't worth the hassle. I ended up just giving up going another route.

+ 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. Exiting Excel fires Change Event on ListBox
    By 24601 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-18-2014, 01:14 PM
  2. [SOLVED] listbox change event won't trigger when listbox is updated
    By Highlander777 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 06-01-2013, 09:03 AM
  3. [SOLVED] Listbox change event to return two values to different cells
    By andy booth in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-15-2013, 08:53 AM
  4. [SOLVED] Data Validation Listbox and the Worksheet Change Event
    By RASENT in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-17-2005, 05:05 PM
  5. Change event for data validation listbox
    By Steve Parkinson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2005, 11:06 AM

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