Hello,
I am trying to create a type definition and then set an array equil to a range of values in an excel sheet using this type. When I try to run the code I get a compile error "invalid qualifyer". Am I trying to do something that can't be done or is my syntax wrong? Any help would be appreciated.
The code in the module is as follows;
Type Atmospheric_Type
altitude As Double
density_ratio As Double
temperature As Double
End Type
Sub test()
last_row = Range("A1"
.End(xlDown).Row
ReDim atmospheric_data(last_row-1) As Atmospheric_Type
atmospheric_data.altitude = Range("A1"
.End(xlDown)
End Sub
I am trying to create a type definition and then set an array equil to a range of values in an excel sheet using this type. When I try to run the code I get a compile error "invalid qualifyer". Am I trying to do something that can't be done or is my syntax wrong? Any help would be appreciated.
The code in the module is as follows;
Type Atmospheric_Type
altitude As Double
density_ratio As Double
temperature As Double
End Type
Sub test()
last_row = Range("A1"
ReDim atmospheric_data(last_row-1) As Atmospheric_Type
atmospheric_data.altitude = Range("A1"
End Sub