Hi everyone.
I have several user form opened and I need through VBA and some button to set focus to that forms the names of which are the contained in a variable. Each button set the variable with the name of the forms.
I try something like this:
but it returns an error.Code:Dim FormAperto as New Form Set FormAperto.Name = VariableWithFormName FormAperto.SetFocus
I read that this kind of operation are not allowed with forms already opened. Is that true?
Any ideas will be very appreciated.