Problem : Invalid forward reference or reference to un compiled type
I have two Forms .Form1 is a treeview and Form2 has buttons,checkboxes,and
textboxes. I am dynamically generating Buttons,Checkboxes and Textboxes in
Form2 depending on the no.of rows in a range.so far my module for Form2
is working.But i have a problem when i am calling the Form2’s module in Form1(Treeview)click_event.It is giving me the following error
Runtime Error: 2147319767 (80028029) —
“could not delete controls,Invalid Forward reference or reference to uncompiled type.”
Is this a problem of referencing from one form to another?I have no idea………..
Can you please let me know what this error means and if there is any possible
solution . If this a problem of referencing can u pl tell me how to refer from one form
I am using windows 98 and EXcel 2000.
let me know if u need my code.
Solution: Invalid forward reference or reference to un compiled type
your OK_Click lies in form1 and MyProject call lies in Form2 right? did you load the form2 before calling MyProject?
this is an example of how the call should be made
and make sure that you have the security settings properly applied.
Macro Security -> Trusted Publishers tab -> Trust access to VB projects should be set to true