Dear all,
After learning so much from other members, now its time to write my first post in the forum.
I am creating an Excel file that, on the main page, shows a Userform (Userform1) if a cell of column "F" is clicked and there is data in the same row of column "B".
This form launches a second Userform (Userform_Test) showing CommandButtons for the user.
There is a data base sheet gathering the captions to create the CommandButtons for the Userform_Test.
If there is a change in the data base, the module called Create_Userform_Test removes the current Userform_Test and creates a new one.
For the new form created, I need to keep its original name as the form is called from Userform1 but and it is expected to be called from other forms.
The module Create_Userform_Test works fine if Userform_Test does not exist or if Userform_Test has not been used previously since Excel is launched.
But, once I've used Useform_Test, it seems like it keeps its name in the memory and vba shows an error name conflict (50135) when trying to name the new form.
Actually, I think that the initial Userform_Test it is not removed because it keeps active or not properly unload.
This problem is driving me crazy...
Any idea about it?
Thanks for your help
Bookmarks