Message 1 of 2
Inventor VBA, WHERE IS THE FORM LOAD EVENT?

Not applicable
06-10-2016
09:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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