A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
It appears that many of us are getting the same error with no resolution yet. i have recently found that a form I am writing has also got the same error. I have gone through step by step and found the trigger in mine, maybe this will help others in finding the resolution.
The form has checkbox controls which hide/unhide and named range upon selection.
Steps followed:
Create main template
Name Range 'PassApps'
Insert Control 'Check Box1'
Apply code to hide/unhide (codes below)
Check if working.
If the file is saved when the rows are unhidden - no problems
If the file is saved with any of the named ranges hidden - corruption occurs
If the file is saved with rows that are not a named range or only part of a named range hidden - no problems
(The named ranges are not the issues as the corruption occurs when the rows are called out in place of the named range)
CODE:
Sub ShowPassApps()
Range("PassAPPS").Select
Selection.EntireRow.Hidden = False
Range("A78").Select
End Sub
Sub HidePassApps()
Range("PassApps").Select
Selection.EntireRow.Hidden = True
Range("A78").Select
End Sub
Private Sub CheckBox2_Click()
Run IIf(CheckBox2, "ShowPassApps", "HidePassApps")
End Sub
When the file re-opens with the corruption, all of the Checkboxes have been removed as part of the repair.
As with everyone else on this string, help wuold be very much appreciated