LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Hidden Cells Text Revealed - Bug?

Hi NG,

I don't like to bandy the word bug around but...

I have an AddIn that connects (ADO) to Access and generates a workbook
on the fly, writing the data into the workbook, storing the primary key
of certain records in cells. The cells' interiors and fonts are colored
such that their contents are not visible to the user plus the cells are
flagged as hidden with the worksheet protected - thus the cells'
contents are not visible to the user.

Periodically the workbook polls Access to check for changes to the
records and updates as necessary. This is managed by setting an OnTime
event.

So far so good. A problem began a couple of days ago (I've been doing a
lot of work since and can't nail down exactly when): if you select a
cell, as expected, you cannot see the contents in the formula bar.
However, if a userform is invoked and subsequently displayed, after a
few seconds (notably when the OnTime procedure is run), the cell's
contents are displayed in the formula bar - as if the sheet was no
longer protected.

The cell's contents remain visible until the form is closed and a
different cell is selected. Reselecting the same cell sees it behave as
normal - until a form is displayed again. It seems to occur for all
cells - all cells on the worksheet are protected and hidden.

There's nothing unusual going on in the OnTime event indeed I have
remmed the code (other than that that sets the next event) out - there's
certainly no unprotecting of the sheet - I reprotected the sheet
manually with a different password from that used elsewhere in the code
to make sure.

I've also taken the following steps

- Cleaned several times with Mr Bovey's code cleaner.
- Exported all modules and manually reimported into a new workbook.
- Installed SP2 (I'm running Office 2003 on XP Home )

I've tried recreating the problem on a different workbook with just a
few lines of code to sustain OnTime procedures but haven't succeeded.

Note the AddIn has four forms, the problem only occurs with two of them,
one has a listbox, one has a listview - the rest are just textboxes,
buttons, checkboxes etc.

Has anyone ever seen this before or does anyone have any suggestions as
to what could be causing this? I'm going to start pulling code out of
the workbook to try and narrow it down but since the worksheet isn't
being unprotected I'm not convinced this will help.

Thanks,
Gareth
 
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
drag data vertically over hidden cells.. ignore hidden cells Derwood Excel Discussion (Misc queries) 1 March 6th 08 10:59 PM
How can I remove hidden empty text cells from Excel? Bill Z1P Excel Worksheet Functions 2 October 2nd 05 08:04 PM
Why is my text hidden behind other cells? dANA Excel Discussion (Misc queries) 1 September 22nd 05 07:37 PM
Keep the left column revealed Wiseowl Excel Worksheet Functions 4 April 26th 05 01:55 AM
How do I prevent hidden columns from being revealed by another use archie Excel Discussion (Misc queries) 3 January 14th 05 04:00 AM


All times are GMT +1. The time now is 03:49 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"