Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default VBA: Possible to colour seperate lines in a list box?

Greetings,

I'm just wondering if it's possible to colour different lines within a list
box?
I want to do the following

First line - white
Second line - light blue
Third line - white
Fourth line - light blue
and so on.

Just wondering if this is possible?

Thanks in advance for any help.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default VBA: Possible to colour seperate lines in a list box?

That option is not included in the Properties list for a ListBox. You do
have the option to use bold or italics but it applies to the entire list, not
single lines.

"NateBuckley" wrote:

Greetings,

I'm just wondering if it's possible to colour different lines within a list
box?
I want to do the following

First line - white
Second line - light blue
Third line - white
Fourth line - light blue
and so on.

Just wondering if this is possible?

Thanks in advance for any help.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,069
Default VBA: Possible to colour seperate lines in a list box?

You might check out this link:
http://www.andypope.info/vba/colourdropdown.htm

Hope this helps,

Hutch

"NateBuckley" wrote:

Greetings,

I'm just wondering if it's possible to colour different lines within a list
box?
I want to do the following

First line - white
Second line - light blue
Third line - white
Fourth line - light blue
and so on.

Just wondering if this is possible?

Thanks in advance for any help.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Possible to colour seperate lines in a list box?

Did you not see my reply to your similar question under subject:
"ListBoxes - Different Elements, different colours" on 25 March.

Regards,
Peter T

"NateBuckley" wrote in message
...
Greetings,

I'm just wondering if it's possible to colour different lines within a

list
box?
I want to do the following

First line - white
Second line - light blue
Third line - white
Fourth line - light blue
and so on.

Just wondering if this is possible?

Thanks in advance for any help.



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
I have a text box and cannot use the Enter key to seperate lines Geechee Excel Worksheet Functions 7 April 26th 23 03:48 AM
seperate first 2 lines of column in seperate columns in same row Glynnhamer Excel Discussion (Misc queries) 2 October 9th 06 04:23 AM
How to draw lines to seperate data garrylwhiting[_3_] Excel Programming 0 November 15th 04 02:17 PM
How to draw lines to seperate data garrylwhiting[_2_] Excel Programming 1 November 12th 04 10:16 PM
How to draw lines to seperate data garrylwhiting Excel Programming 2 November 10th 04 05:31 PM


All times are GMT +1. The time now is 05:11 PM.

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

About Us

"It's about Microsoft Excel"