I have an existing spreadsheet with a drop down list of numbers. Each cell will be used in a calculation.
For example
Data validation list source has 2, 4
I select the value 2 or 4 from the spreadsheet.
What I want is to select a string instead of the number
For example
North
South.
I want to be able to add the cells as if they were numbers not strings.
So I created a enum in VBA
example
Public Enum eHemisphere
North=2
South =4
End Enum
Dim h As eHemisphere
Then I wanted to specify the enum variable in a data list. =h Can someone help.
For example
Data validation list source has 2, 4
I select the value 2 or 4 from the spreadsheet.
What I want is to select a string instead of the number
For example
North
South.
I want to be able to add the cells as if they were numbers not strings.
So I created a enum in VBA
example
Public Enum eHemisphere
North=2
South =4
End Enum
Dim h As eHemisphere
Then I wanted to specify the enum variable in a data list. =h Can someone help.