Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to set the rowsource of a combobox when the drop down
button is clicked. It looks to be working fine, then I get an error message from Excel saying that it has encountered a problem and must shut down. I stepped through the code with the debug feature and there is definitely something wrong, but I've not been able to figure it out. This is the code. Private Sub ComboBox6_DropButtonClick() ComboBox6.RowSource = "h_outermagnetbore" End Sub h_outermagnetbore is a range When I click on the drop button, the selections are there, but then the error statement comes up immediately and I must shut down Excel. I can probably figure out some other way, but it seems like this should work. Can anyone tell me why it won't work? Thanks, Greg |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If the source is a range with the name h_outer ... , then why is it in
quotation marks? "Gig" wrote: I'm trying to set the rowsource of a combobox when the drop down button is clicked. It looks to be working fine, then I get an error message from Excel saying that it has encountered a problem and must shut down. I stepped through the code with the debug feature and there is definitely something wrong, but I've not been able to figure it out. This is the code. Private Sub ComboBox6_DropButtonClick() ComboBox6.RowSource = "h_outermagnetbore" End Sub h_outermagnetbore is a range When I click on the drop button, the selections are there, but then the error statement comes up immediately and I must shut down Excel. I can probably figure out some other way, but it seems like this should work. Can anyone tell me why it won't work? Thanks, Greg |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try something like that:
Private Sub ComboBox6_DropButtonClick() ComboBox6.Rowsource = Application.Transpose(Range(h_outermagnetbore)) End Sub "Gig" a écrit dans le message de ... I'm trying to set the rowsource of a combobox when the drop down button is clicked. It looks to be working fine, then I get an error message from Excel saying that it has encountered a problem and must shut down. I stepped through the code with the debug feature and there is definitely something wrong, but I've not been able to figure it out. This is the code. Private Sub ComboBox6_DropButtonClick() ComboBox6.RowSource = "h_outermagnetbore" End Sub h_outermagnetbore is a range When I click on the drop button, the selections are there, but then the error statement comes up immediately and I must shut down Excel. I can probably figure out some other way, but it seems like this should work. Can anyone tell me why it won't work? Thanks, Greg -- Michel Angelosanto, Bordeaux Dernières mises à jour du site Voyage au pays Internet http://angelosa.free.fr/index.php?t=8 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Click event of combobox | Excel Programming | |||
Combobox - can't get click event to run for first item in the list | Excel Programming | |||
Click event on combobox in a loop | Excel Programming | |||
Click event on combobox in a loop | Excel Programming | |||
Copying Worksheet triggers Click event of combobox | Excel Programming |