PC Review


Reply
Thread Tools Rate Thread

Corrupt Visual Basic Project?

 
 
Lance
Guest
Posts: n/a
 
      1st Jul 2009
Hello,

I have an excel file with currently about 10 sheets. It has 1 module,
and some code in the ThisWorkbook Object as well as 1 of the sheets.
Each tab is a daily report - occasionally, I manually delete
worksheet tabs to manage the file size.

I just noticed that in the VBA project, there are many blank (i.e.
Sheet10, Sheet11, Sheet12, Sheet13, etc) Microsfot Excel Code Objects
(31 to be exact) - these objects can be activated and code can be
entered. However, there are only 15 existing worksheet tabs...

The only other notable observation is that the icon for the non-
existing objects in the VB project explorer window are the green Excel
"X", whereas code objects with associated valid worksheet tabs are a
small black table icon.

I suspect the VBA project is corrupt and I will have to figure out a
way to try and start the workbook from scratch...

But has anyone experienced anything like this before, and what can I
do to prevent this from happening in the future?

Thanks,

Lance
 
Reply With Quote
 
 
 
 
Matthew Herbert
Guest
Posts: n/a
 
      1st Jul 2009
On Jul 1, 10:56*am, Lance <mzx...@yahoo.com> wrote:
> Hello,
>
> I have an excel file with currently about 10 sheets. *It has 1 module,
> and some code in the ThisWorkbook Object as well as 1 of the sheets.
> Each tab is a daily report - *occasionally, I manually delete
> worksheet tabs to manage the file size.
>
> I just noticed that in the VBA project, there are many blank (i.e.
> Sheet10, Sheet11, Sheet12, Sheet13, etc) Microsfot Excel Code Objects
> (31 to be exact) - these objects can be activated and code can be
> entered. *However, there are only 15 existing worksheet tabs...
>
> The only other notable observation is that the icon for the non-
> existing objects in the VB project explorer window are the green Excel
> "X", whereas code objects with associated valid worksheet tabs are a
> small black table icon.
>
> I suspect the VBA project is corrupt and I will have to figure out a
> way to try and start the workbook from scratch...
>
> But has anyone experienced anything like this before, and what can I
> do to prevent this from happening in the future?
>
> Thanks,
>
> Lance


Lance,

Have you checked what the Visible property is set to for your "blank"
worksheets? Do you want to delete these "blank" worksheets? (No, I
haven't experienced this "green Excel X...small black table icon"
difference you mention).

Best,

Matthew Herbert
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Basic for Applications Project in the database is corrupt OrphanAnnie Microsoft Access 4 2nd Sep 2007 07:42 PM
The Visual Basic Applications project in the database is corrupt. Jonathan Microsoft Access 1 3rd Aug 2007 07:14 PM
The Visual Basic for Applications project in the database is corrupt decktec_inc@yahoo.com Microsoft Access 2 19th Jan 2006 03:24 PM
Visual Basic error - corrupt project Bob Microsoft Access 2 7th Sep 2004 03:04 PM
The Visual Basic for Applications project in the database is corrupt. Steve S. Microsoft Access 0 31st Oct 2003 04:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:46 PM.