Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
KR KR is offline
external usenet poster
 
Posts: 121
Default 'extra' file in VBE project- can't delete it? XL2003

I started modifying an existing file...but I just noticed something that I
haven't seen before.

In the project window, under the MS Excel objects sub-folder, I normally see
each of my worksheets (with a little grid icon), and a "ThisWorkbook" with a
page icon with the Excel "XL" icon on it.

In this particular workbook, there is an /addition/ item with the page/XL
icon, and it is called "Sheet9". It doesn't appear to have any code; and the
listboxes at the top of the code page give me the "general" and "workbook"
options, just like the "ThisWorkbook" file.

I've tried everything I can think of to delete it, but can't find any way to
do so. I can export it successfully, just can't delete it.

Any thoughts on how to get rid of this file?
Thanks!
Keith


  #2   Report Post  
Posted to microsoft.public.excel.programming
GS GS is offline
external usenet poster
 
Posts: 364
Default 'extra' file in VBE project- can't delete it? XL2003

Hi Keith,

There's two things that I can think of that you could try:

1. Check the sheet's visible setting in the properties. It might
actually exist but may have been hidden, (somehow). FormatSheetsUnhide the
delete it.

2. Try Sheets("Sheet9").Delete in the Immediate window (while the
workbook is active).

HTH
Garry
  #3   Report Post  
Posted to microsoft.public.excel.programming
KR KR is offline
external usenet poster
 
Posts: 121
Default 'extra' file in VBE project- can't delete it? XL2003

Garry- here are my results;

On #2, I get a run-time error #9, subscript out of range

On #1, the properties window does not show a visible property. In fact, when
I compare the available properties, and also the intellisense options when I
start typing "Sheet9." in the code window, I get the same list of properties
that are available for ThisWorkbook, not the ones I get for worksheets. This
is consistent with the weird icon thing I probably described poorly- it is
as if it thinks that Sheet9 is another ThisWorkbook object.

Interestingly, when I double-click on it in the Project window, I get an
empty code window...within that window, I can use the drop-down option for
workbook options (like workbook_open) and put in code (or put in a regular
sub, I get the same behavior on both); when I put the cursor within that
code block and click run, it brings up the mini-window of macros available
to run, rather than running the code block where the cursor is. Weird.

I'm now thinking this is some type of weird corruption of the file, although
I'm not looking forward to rebuilding this thing...
:-/

Thanks,
Keith

"GS" wrote in message
...
Hi Keith,

There's two things that I can think of that you could try:

1. Check the sheet's visible setting in the properties. It might
actually exist but may have been hidden, (somehow). FormatSheetsUnhide

the
delete it.

2. Try Sheets("Sheet9").Delete in the Immediate window (while the
workbook is active).

HTH
Garry



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot delete extra rows jmj713 Excel Discussion (Misc queries) 6 January 8th 09 09:23 PM
How to delete extra pages at end of excel file when printing Michelle Excel Discussion (Misc queries) 2 January 29th 08 06:27 PM
Delete Extra Pages older pro[_2_] Excel Discussion (Misc queries) 0 February 14th 07 03:49 PM
Delete extra pages older pro Excel Worksheet Functions 0 February 12th 07 11:04 PM
Assigning the Help 4, *.HLP file for a project programmatically in a protected Project Tony Seiscons Excel Programming 0 October 4th 04 03:10 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"