Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 489
Default Hard code Listbox Header Text

I have a listbox with 5 Columns that has a header row. Is there a way to
hard code the text that is in the header in the userform Intialize Event? I
know you can do it with RowSource, but I wanted a way to do it with VBA.

Thanks in Advance!
--
Cheers,
Ryan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Hard code Listbox Header Text

You could assign the rowsource in code, but that's probably not what you meant.

You have to use the rowsource to get the headings.

Ryan H wrote:

I have a listbox with 5 Columns that has a header row. Is there a way to
hard code the text that is in the header in the userform Intialize Event? I
know you can do it with RowSource, but I wanted a way to do it with VBA.

Thanks in Advance!
--
Cheers,
Ryan


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Hard code Listbox Header Text

Another option may be to put labels over the listbox????

Dave Peterson wrote:

You could assign the rowsource in code, but that's probably not what you meant.

You have to use the rowsource to get the headings.

Ryan H wrote:

I have a listbox with 5 Columns that has a header row. Is there a way to
hard code the text that is in the header in the userform Intialize Event? I
know you can do it with RowSource, but I wanted a way to do it with VBA.

Thanks in Advance!
--
Cheers,
Ryan


--

Dave Peterson


--

Dave Peterson
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
Hard code date in header Jan Excel Programming 1 February 23rd 09 09:09 AM
refernce header text in code KUMPFfrog Excel Programming 3 January 27th 09 05:45 PM
Hard return in textbox for header text Dylan Excel Programming 6 April 2nd 08 12:19 PM
ListBox with header row, delete row, protect header row mikeolson Excel Programming 2 March 12th 07 02:59 AM
Having a hard time with listbox Thurman Excel Programming 3 September 7th 03 11:22 PM


All times are GMT +1. The time now is 09:46 AM.

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"