ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Combo box (https://www.excelbanter.com/excel-programming/323644-combo-box.html)

Teresa

Combo box
 
Ive tried the below - howver doesnt seem to call CL, always calls "Value"

Thanks

Private Sub ComboBox1_Change()

If Worksheets("Sheet1").Range("AA3").Value = "C" Then
Call CL
Else
Call Value
End If
End Sub




Teresa

Combo box
 
Has been answered - thanks

"teresa" wrote:

Ive tried the below - howver doesnt seem to call CL, always calls "Value"

Thanks

Private Sub ComboBox1_Change()

If Worksheets("Sheet1").Range("AA3").Value = "C" Then
Call CL
Else
Call Value
End If
End Sub




gocush[_29_]

Combo box
 
Teresa,

Not sure of what you solution is but in you original post you have
apparently used the word "Value" as the name of a macro. This is NOT a good
idea, as Value is a reserved word with a specific meaning in vba

"teresa" wrote:

Has been answered - thanks

"teresa" wrote:

Ive tried the below - howver doesnt seem to call CL, always calls "Value"

Thanks

Private Sub ComboBox1_Change()

If Worksheets("Sheet1").Range("AA3").Value = "C" Then
Call CL
Else
Call Value
End If
End Sub





All times are GMT +1. The time now is 06:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com