G
Guest
I am trying to build a form that will run some vba code and then put a value
calculated in a text box. What do I put in the Control Source of the text
box to get it to display the value of a variable defined in the vba code? I
know the vba is good as far as calculating the value. Does something have to
be put in the code to make it available to the form? I will be using the
value for other calculations later. I would like the value calculated when
the form is opened and have have some question about where to place the vba
code. Is the OnEnter event the proper place?
calculated in a text box. What do I put in the Control Source of the text
box to get it to display the value of a variable defined in the vba code? I
know the vba is good as far as calculating the value. Does something have to
be put in the code to make it available to the form? I will be using the
value for other calculations later. I would like the value calculated when
the form is opened and have have some question about where to place the vba
code. Is the OnEnter event the proper place?