Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default combo box value

This is a simple question but it is the first time I have used a combo box.

I am creating a form to filter the data of a spreadsheet which will make the
charts seem dianamic.

I have set up the spreadsheet and am using the advanced filter but the form
is what will drop the data into the criteria cell. My problem is I don't know
how to take the value in the combo box and have it put into the criterial
cell. The combo box has the correct information in it. Any help would be
great. Here is the code for the combo box right now, the information needs go
on sheet 1.

Option Explicit
Public strType As String
Public strSeries As String




Private Sub ComboBox1_Change()

End Sub

Private Sub UserForm_Activate()
With ComboBox1 (needs to drop into cell "N3" renamed cell "Type")
.AddItem "AC250"
.AddItem "al425"
End With
With ComboBox2 (needs to drop into cell "O3" renamed cell "Series")
.AddItem "Regular"
.AddItem "TC"
End With
End Sub

Thank you for your help in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default combo box value

hi
in the combobox change event put this....
Range("E1").Value = ComboBox1.Value
change the cell reference to reflect your sheet.

Regards
FSt1

"tpeter" wrote:

This is a simple question but it is the first time I have used a combo box.

I am creating a form to filter the data of a spreadsheet which will make the
charts seem dianamic.

I have set up the spreadsheet and am using the advanced filter but the form
is what will drop the data into the criteria cell. My problem is I don't know
how to take the value in the combo box and have it put into the criterial
cell. The combo box has the correct information in it. Any help would be
great. Here is the code for the combo box right now, the information needs go
on sheet 1.

Option Explicit
Public strType As String
Public strSeries As String




Private Sub ComboBox1_Change()

End Sub

Private Sub UserForm_Activate()
With ComboBox1 (needs to drop into cell "N3" renamed cell "Type")
.AddItem "AC250"
.AddItem "al425"
End With
With ComboBox2 (needs to drop into cell "O3" renamed cell "Series")
.AddItem "Regular"
.AddItem "TC"
End With
End Sub

Thank you for your help in advance.

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
linking a form combo box... results from the combo box to another Trey Excel Discussion (Misc queries) 1 July 15th 07 01:58 AM
Excel VBA Combo Box Populating dependent on other combo box choices ikabodred Excel Programming 1 March 15th 06 03:16 PM
Filtered list for Combo Box ListFillRange - Nested Combo Boxes DoctorG Excel Programming 3 February 23rd 06 12:15 PM
"Combo Box - getting control combo box to stick in place in worksh ajr Excel Discussion (Misc queries) 1 February 16th 05 02:05 AM
"Combo Box - getting control combo box to stick in place in worksh ajr Excel Discussion (Misc queries) 0 February 15th 05 07:45 PM


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