Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Multiselect ListBox - Active/Inactive Items

Hi
Is it possible to change the appearance/color of certain items inside a
listbox? To indicate if some items are active.

Example

Listbox:
Item1
Item2
Item3
item4 --- This are all the possible values

When compared this values with a query, let's say that item3 is
missing, So item3 is showed in the listbox, but can't be selected.

Regards,
LCK

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Multiselect ListBox - Active/Inactive Items

What are you trying to do??
If you are using a range for a list box, the items in that range could
be formulated, and then would not be there.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Multiselect ListBox - Active/Inactive Items

Hi,

You must have a separate list if you are comparing values to your list.

Use the listindex property to ascertain a match and the listbox click event
to determine the list item clicked.

eg:
dim intNum as integer
intNum=listbox.listindex
if listbox.list(intNum)<range("A1").value then
msgbox"That item does not exist!",vbexclamation,"Listbox Manager"
end if

see my stuff at:

http://www.geocities.com/excelmarksway

- - mark


=============================
"LCK" wrote:

Hi
Is it possible to change the appearance/color of certain items inside a
listbox? To indicate if some items are active.

Example

Listbox:
Item1
Item2
Item3
item4 --- This are all the possible values

When compared this values with a query, let's say that item3 is
missing, So item3 is showed in the listbox, but can't be selected.

Regards,
LCK


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiselect Listbox use RKS Excel Discussion (Misc queries) 1 May 12th 06 03:04 PM
MultiSelect ListBox StephanieH Excel Programming 5 November 20th 04 12:29 AM
Multiselect Listbox Francis Ang[_3_] Excel Programming 0 October 27th 04 02:21 AM
Multiselect Listbox Francis Ang[_3_] Excel Programming 2 October 25th 04 01:57 AM
multiselect listbox CG Rosén Excel Programming 2 December 28th 03 05:17 PM


All times are GMT +1. The time now is 08:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"