Manuel Cavero
New Member
- Joined
- Feb 17, 2018
- Messages
- 26
Good morning everyone:
I have to develop a piece of code that calls an useform form two different places. The first one piece of code needs to load an UserForm in memory, so what I doing now if load the UserForm calling forma normal module this way:
Where UFPAR is the UserForm and PPRUE is a Public Sub that loads values in a Dictionary.
From another module I'm calling the Userform with this piece of code:
I've a problem with the first item, sometines works right and sometimes VBA gives me an error, telling that the object (UFPAR or the UserForm) is Null, because the first piece of code doesn't load the UserForm.
Trying to change the way of doing the load of the userform, I tryed to used
or
But VBE doesn't loads the UserForm. Why?
I have to develop a piece of code that calls an useform form two different places. The first one piece of code needs to load an UserForm in memory, so what I doing now if load the UserForm calling forma normal module this way:
Code:
UFPAR.PPRUE
Where UFPAR is the UserForm and PPRUE is a Public Sub that loads values in a Dictionary.
From another module I'm calling the Userform with this piece of code:
Code:
Private Sub CBPares_click()
UFPAR.PPRUE
UFPAR.Show vbModeless
End Sub
I've a problem with the first item, sometines works right and sometimes VBA gives me an error, telling that the object (UFPAR or the UserForm) is Null, because the first piece of code doesn't load the UserForm.
Trying to change the way of doing the load of the userform, I tryed to used
Code:
LOAD UFPAR
Code:
LOAD (UFPAR)
But VBE doesn't loads the UserForm. Why?