Using VBIDE.VBComponent in VB.NET

  • Thread starter Thread starter ExcelMonkey
  • Start date Start date
E

ExcelMonkey

I can use the following in VBA:
VBComp As VBIDE.VBComponent
If VBComp.Collection.Parent.Protection = vbext_pp_locked Then


When I try to use this in VB.Net the following does NOT work:
Dim VBComp As Microsoft.Vbe.Interop.VBComponent
If VBComp.Collection.Parent.Protection =
Microsoft.Vbe.Interop.vbext_pp_locked Then

Am I using the right declaratio for VBComp in VB.NET?

Thanks

EM
 
ExcelMonkey said:
I can use the following in VBA:
VBComp As VBIDE.VBComponent
If VBComp.Collection.Parent.Protection = vbext_pp_locked Then


When I try to use this in VB.Net the following does NOT work:
Dim VBComp As Microsoft.Vbe.Interop.VBComponent
If VBComp.Collection.Parent.Protection =
Microsoft.Vbe.Interop.vbext_pp_locked Then

Am I using the right declaratio for VBComp in VB.NET?

Thanks

EM

What are you trying to accomplish here?
 
Back
Top