Thank you, Andy
I was so focused on creating a variable that I didn't see the obvious: just use the full name!
With frmForm as Form it worked for me using Form_Test_0 or whatever in the call.
And thats why external inputs are priceless when you hit a wall....
Not quite...
What currently is accepted is (requardless if the form is open or not):
With form_Test_0
----coding----
What I want it to accept is:
varFormNo = 0
varForm = "form_Test_" & varform
With varForm
----coding----
But if I do anything like .something.property = value, I get an...
I would like to call a public procedure to do some modifications in multiple forms.
The name of the forms are the same, but followed by a number. The name of the form and the number I'd like to put in a variable for the procedure to work with. I just don't know how to make the variable so VBA...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.