Still having trouble unfortunately.
The first section of code below "should" set the value of the LotNumber. It then calls the routine at the end of which the User form is shown that displays the Lot Number text box. The first time the program is run there shouldn't be any value. True or False?
After some information is entered by the user on this part of the form, instructions are given to open a file. Then another form appears in which the user enters additional information. An OK button is then selected which leads to subsequent code, part of which is shown below where the Lot Number is supposedly saved.
The user is then asked to save the workbook, the code for which is shown below:
When the user runs the program again (code at top of this diatribe) I still don't see the "previously saved" Lot Number which was purportedly set to MyValue right before the start of the routine.
I did try the following:
In the "Save Workbook" section above I inserted the following before the
statement just to see what would be shown.:
frmEasyLyteQC.txtLotNum.Value = MyValue
frmEasyLyteQC.Show
Lo and behold MyValue did appear in the textbox. But that does me no good. I want to see MyValue after restarting the program, not during subsequent rerun of the already running program.
Bookmarks