Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
All of the ranges are fine. All of the variables are fine. I have stepped
through the code and checked everything. After realizing that I also had a problem on this sheet with a change event trying to change the format of a cell, I gave up on the task and simply leave those two lines unhidden all the time. Used or not. Thanks for your suggestions, but something is problematic with the sheet. With 48 sheets, and a 4 MB size when all code is compiled, the workbook can be flaky. (And Open and Repair does change a thing.) On Tue, 24 May 2005 09:16:59 -0400, "Tom Ogilvy" wrote: No. I have stopped the code and tried the line in immediate mode using True or False. BoundFlag is a boolean. And the macro works fine if I run it outside of the change event. Well that's just the thing - isn't it. Running it outside the change event is a whole different world from running it inside the change event. For instance, Range used inside the change event refers to the sheet containing the code. Used outside the change event in a general module, it refers to the activesheet. So maybe it is working perfectly, but not on the sheet you think - then again this may not be applicable at all. The visibility of a variable could also be affected by location. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Enabling option „Format rows“ to hide/unhide rows using VBA-code? | Excel Discussion (Misc queries) | |||
How to Hide and Unhide Rows | Excel Discussion (Misc queries) | |||
Hide Unhide Rows | Excel Discussion (Misc queries) | |||
Hide/Unhide rows | Excel Programming | |||
How to hide and unhide rows | Excel Programming |