Hi everyone,
I'm doing a project and found a little problem (I'm very new to vba).
I'm trying topass a userform as an argument to another subroutine, but I can't seem to do it correctly. (Run-time error '438'. Object doesn't support this property or method)
Sub to create the userform:
Code
Sub CreateElecForm()
Dim TempForm As Object
Dim FormName As String
Set TempForm = ThisWorkbook.VBProject.VBComponents.Add(ComponentType:=vbext_ct_MSForm)
(...)
Call GetElecInfoFromUserForm(TempForm)
End Sub
Display More
Subroutine:
Thanks in advance