I am new to VBA and am having some trouble with combobox storing numbers as text.
The combobox pulls data from a named range in a sheet containing numbers (stored as numbers)
the user selects a number and then hits a confirm command button with the following code
Private Sub Confirm_Click()
Application.ScreenUpdating = False
Sheets("data").Visible = True
Sheets("data").Range("J1").Value = case1
YourCase.Hide
Sheets("data").Visible = xlVeryHidden
Application.ScreenUpdating = True
End Sub
Case1 is the combobox.
When this puts the data in the cell it returns N/A error with my vlookup in the sheet.
How do i ensure that this is stored as a number compatible with my vlookup
Thanks
Impossible is Nothing
The combobox pulls data from a named range in a sheet containing numbers (stored as numbers)
the user selects a number and then hits a confirm command button with the following code
Private Sub Confirm_Click()
Application.ScreenUpdating = False
Sheets("data").Visible = True
Sheets("data").Range("J1").Value = case1
YourCase.Hide
Sheets("data").Visible = xlVeryHidden
Application.ScreenUpdating = True
End Sub
Case1 is the combobox.
When this puts the data in the cell it returns N/A error with my vlookup in the sheet.
How do i ensure that this is stored as a number compatible with my vlookup
Thanks
Impossible is Nothing