View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Lizzie Lizzie is offline
external usenet poster
 
Posts: 1
Default Excel 2000 - Which VBA project is ActiveProject?

Hi.

When you open Excel 2000, it opens a default blank
worksheet.
If I then open a worksheet containing VBA code, and run
the code, why does Excel still think that

Application.VBE.ActiveVBProject

is the project belonging to the default blank sheet, and
not the one belonging to the activeworkbook ?

Is this a bug? I can't see how, when code is actually
running, the project running that code is not seen by VBA
as the ActiveProject.