Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Populate Column Header on ComboBox

I want to populate a combobox with 10 integers using VBA. I also wan
the word "Integers" to display as teh field name in the column hea
part of the drop down list.

Here is the code for the list of integers.

Sub Add_Combobox_Items()
For x = 1 To 10
Sheets(1).ComboBox1.AddItem x
Next
End Sub

How do I get the word "Integers" in the column heading? Unde
Combobox1, Properties, Columnheads is set to True

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Populate Column Header on ComboBox

The only way that I know to do that is to tie the combobox contents to a
range in a worksheet, and put the headers in there too. No programatical
way to do that

--
Regards,

Juan Pablo González

"michael_13143 " wrote in
message ...
I want to populate a combobox with 10 integers using VBA. I also want
the word "Integers" to display as teh field name in the column head
part of the drop down list.

Here is the code for the list of integers.

Sub Add_Combobox_Items()
For x = 1 To 10
Sheets(1).ComboBox1.AddItem x
Next
End Sub

How do I get the word "Integers" in the column heading? Under
Combobox1, Properties, Columnheads is set to True.


---
Message posted from http://www.ExcelForum.com/



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
can I use a cell content to auto-populate to a header in excel? DaveC Excel Discussion (Misc queries) 11 June 23rd 09 12:49 PM
how to get Excel 07 combobox to populate from MS Access table? xz Excel Discussion (Misc queries) 0 November 20th 07 05:45 PM
How do i populate a text box according to selection in combobox? Steve Excel Worksheet Functions 0 April 13th 06 12:40 PM
Populate combobox with visable rows only max Excel Programming 1 February 17th 04 02:27 AM
Having data populate text boxes based on Combobox Value Todd Huttenstine[_2_] Excel Programming 1 November 10th 03 01:35 AM


All times are GMT +1. The time now is 04:43 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"