Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,590
- Office Version
- 365
- 2016
- Platform
- Windows
I have variables fix_type and fix_name declared publically as string.
When I run my code and get to this point of opening my userform, both variables have values.
I get an error (object required) in my Userform Initialization mode (lines highlighted red) when I try to assign these variable's values to their respective labels on the userform. Both "fx_type" and fx_name" are valid lable names in my userform. Looking to have my error revealed.
Code:
Public fix_type As String
Public fix_name As String
When I run my code and get to this point of opening my userform, both variables have values.
Code:
...
Case 1
fix_type = "NDB"
valid_freq fixpropcancel
Stop
Coordinates.Show
Case 2
...
I get an error (object required) in my Userform Initialization mode (lines highlighted red) when I try to assign these variable's values to their respective labels on the userform. Both "fx_type" and fx_name" are valid lable names in my userform. Looking to have my error revealed.
Rich (BB code):
Private Sub UserForm_Initialize()
Caption = "FIX COORDINATES"
fx_type.Caption = fix_type.Value
fx_name.Caption = fix_name.Value
btn_accept.Enabled = False
lat_dd.Value = "00.000000"
long_dd.Value = "00.000000"
lat_dm_d.Value = "00"
lat_dm_min.Value = "00"
long_dm_d.Value = "00"
lon_dm_min.Value = "00"
lat_dms_d.Value = "00"
lat_dms_min.Value = "00"
lat_dms_sec.Value = "00.000"
long_dms_d.Value = "00"
lon_dms_min.Value = "00"
long_dms_sec.Value = "00.000"
End Sub