Spent a few hours trying to do the following simple macro.
on running the macro, a dialog pops up with some text fields the user fills in. The user the clicks a "run" button, and the macro does its thing.
The dialog and controls are created (and given meaningful names).
Running the macro brings up the dialog automatically.
Clicking the "RUN" button fires off a second macro that is supposed to do the work
what I can't do is get the values the user input into the text boxes.
So, the dialog is up, and the user has entered a value into a text box called txt_SrcCol.
The user pushes Run, which is linked to this subroutine.
For test purposes, I was just trying to pull the value and display it in a message box. When I run this, I just get a blank message box.
Code: Select all
sub FigureDialog
BasicLibraries.LoadLibrary("Tools")
oDialog1 = LoadDialog("Standard", "Test1")
otxt1 = oDialog1.GetControl("txt_SrcCol")
MsgBox otxt1.Text
end sub
Any insight would be appreciated.