View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Guga Guga is offline
external usenet poster
 
Posts: 2
Default VBIDE.Codemodule.addfromfile putting code in wrong place

Dear all,

I am using VBIDE.Codemodule.addfromfile "NameOfFile.bas" to append a
procedure to a VBComponent. The problem is that in this VBComponent I
have variables declarations and one in the middle that is Public, and
the VBE engine is appending the procedure several lines above this
declaration, although the first procedure is several lines bellow. Any
suggestion?

Thanks,
GM