Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all, what am I doing wrong with the vb code below.
I am trying to get the rowsource from a sheet called "mainsheet" and the range f22 to f23 If Sheet1.Range("F18").Value = 8 Then MsgBox "8" ComboBox1.RowSource = Sheet1.Range("F22:F31") ComboBox1.Visible = True End If Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It's a string property, so try
If Sheet1.Range("F18").Value = 8 Then MsgBox "8" ComboBox1.RowSource = Sheet1.Range("F22:F31").Address(,,,True) ComboBox1.Visible = True End If -- HTH Bob Phillips (remove nothere from the email address if mailing direct) "Greg" wrote in message ... Hi all, what am I doing wrong with the vb code below. I am trying to get the rowsource from a sheet called "mainsheet" and the range f22 to f23 If Sheet1.Range("F18").Value = 8 Then MsgBox "8" ComboBox1.RowSource = Sheet1.Range("F22:F31") ComboBox1.Visible = True End If Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ComboBox1.RowSource = "Sheet1!F22:F31"
HTH -- AP "Greg" a écrit dans le message de news: ... Hi all, what am I doing wrong with the vb code below. I am trying to get the rowsource from a sheet called "mainsheet" and the range f22 to f23 If Sheet1.Range("F18").Value = 8 Then MsgBox "8" ComboBox1.RowSource = Sheet1.Range("F22:F31") ComboBox1.Visible = True End If Thanks |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Bob and Ardus
It working well now. Greg "Greg" wrote in message ... Hi all, what am I doing wrong with the vb code below. I am trying to get the rowsource from a sheet called "mainsheet" and the range f22 to f23 If Sheet1.Range("F18").Value = 8 Then MsgBox "8" ComboBox1.RowSource = Sheet1.Range("F22:F31") ComboBox1.Visible = True End If Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel combo box Error | Excel Discussion (Misc queries) | |||
Combo box VBA error | Excel Discussion (Misc queries) | |||
error message on combo box | Excel Programming | |||
combo box error-not enough resources | Excel Programming | |||
Combo Box causes system resources error | Excel Programming |