Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel 07 - doc insp says there's a hidden worksheet and there isn'

Hi,

I am having trouble accessing a particular XLSM spreadsheet via OleDB from
vb.Net and FW 2.5.

As the spreadsheet was given to me, I was unable to access the desired
sheets. I was sanitizing the spreadsheet to send to someone and I went to
run document inspector to see if I needed to clean any other information out.
First, the inspector told me that it could not run because I had protected
worksheets. So I unprotected the protected worksheets and re-ran the
inspector. It told me that that I had 1 hidden worksheet. So I let it
remove that.

Anyway, once I had performed the above steps, I was able to access the
desired worksheets.

I also tried saving the original XLSM as an XLSX and got the same results as
witht eh original XLSM file. I was able to access the data by saving the
XLSM as an XLS file.

As a test, I restored my copy and just removed the protection from the
protected worksheets and did not unhide the other worksheet and was still
unable to access the data without getting the error that I got before. I can
only access the data after clicking on Remove All for the Hidden Worksheets.

The problem now is that I was unable to find a worksheet to unhide from the
Format/Hide and Unhide/Unhide sheet as this option was disabled. So I looked
for any VeryHidden sheets via VBA (going through the worksheets collection)
and visually in the project exlporer tree, but found nothing.

Here's the code I used to look into the collection:
Sub ShowSheets()

Dim wks As Worksheet

For Each wks In ActiveWorkbook.Worksheets
MsgBox wks.Name & " - " & wks.Visible
Next wks

End Sub

How can the document inspector see a hidden sheet and I cannot?

Can you tell me whether or not the Remove All command for the hidden
worksheet in the document inspector actually deletes or unhides a worksheet?
Also, can you tell me exactly what should be able to stop me from being able
to access the data? Items such as hidden worksheets/cells, protected
worksheets/cells, etc.

Thanks,
Bobby




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
FYI Excel 2007: Saving a xlsm file with a hidden worksheet activated makes worksheet visible David G.[_3_] Excel Programming 0 August 3rd 09 07:16 PM
2007 Worksheet, Hidden Columns, .CSV Format Saves Hidden Column Da Tammy Excel Discussion (Misc queries) 3 April 2nd 09 11:40 PM
Hidden Columns No Longer Hidden after Copying Worksheet? EV Nelson Excel Discussion (Misc queries) 1 December 6th 06 05:10 PM
How do I detect hidden worksheets or hidden data on a worksheet? Alice Excel Discussion (Misc queries) 4 August 24th 06 03:38 AM
Saving hidden data with a worksheet (preferably without using a hidden sheet) Dick Kusleika[_3_] Excel Programming 2 January 21st 04 04:39 PM


All times are GMT +1. The time now is 03:18 PM.

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

About Us

"It's about Microsoft Excel"