The type statement is not PUBLIC by default. If you would like to create a
public type, then add a module to your project and put something like this
in there:
Public Type Test
Name As String
Age As Integer
End Type
Next, place the following in a form (for example):
Private Sub Form_Load()
Dim tTest As Test
tTest.Name = "Larry"
tTest.Age = 28
Debug.Print tTest.Name
Debug.Print tTest.Age
Stop
End Sub
Quote:
> I need help with the TYPE command. I get an error when I try to make a
variable(ex: one.two.three) withe the
Quote:
> type statement. I want to make this a public variable. Is it public by
default?