Inventor VBA, WHERE IS THE FORM LOAD EVENT?

Inventor VBA, WHERE IS THE FORM LOAD EVENT?

Anonymous
Not applicable
635 Views
1 Reply
Message 1 of 2

Inventor VBA, WHERE IS THE FORM LOAD EVENT?

Anonymous
Not applicable

Okay, here's a real simplke question.  In every form of VBA I understand, I can control the values in a form in VBA, at load time.  For some reason, in Inventor, I cannot even find the correct event (such as form open, load, or whatever).

 

Below is what I seek to accomplish, and I cannot believe I have had to devote the majority of the morning trying to figure it out, because standard VBA in Access or any other program works far differently.

 

In short, WHERE IS THE FORM LOAD EVENT??

 

Thanks n advance!

 

 

Private Sub userform_load()
    Dim dirn As String
    dirn = "c:\temp"
          
    Dim filn As String
    If Len(txtStampText) > 0 Then
        filn = txtStampText.txt
        
    End If

    ' Check to see if c:\temp exists
    
    ' Check to see if c:\temp\txtStampText.txt exists
    Dim fullfilen As String
    fullfiln = dirn & "\" & filn
    If Dir(fullfiln) > "" Then
        MsgBox (fullfiln)
        
        ' Import contents of c:\temp\txtStampText.txt to txtStampText
        Open fullfiln For Input As #1
        Dim rn As Integer
        rn = 0
        Line Input #1, rn
        txtStampText = linefromfile
        
    End If
    
End Sub

 

0 Likes
636 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

Have you tried the form activate event?

 

Private Sub UserForm_Activate()


End Sub
0 Likes