views:

280

answers:

2

Hi

I've been working on a document that has a number of hidden sections that can be made visible using check boxes (and VBA). Most of this works fine including hiding Tables, Pictures, Formatting and Text using Range.Font.Hidden = True.

My problem lies with leaving a table hidden, saving the document and then re-opening the document.

The document saves and closes fine, but when reopening the Document the text for the table stays hidden but the table gridlines and spacing are displayed, giving the look of a strange but empty table.

Does anyone know of a way to avoid this problem or have any advice?

A: 

You can hide the gridlines like so:

ActiveWindow.View.TableGridlines = False

However, it won't work if your table has custom borders.

guillermooo
Thanks, unfortunately yes we use drawn borders.
A: 

After trying a number of different things and even though I have other sections that contain tables that work fine, I have ended up converting the tables back to text which makes them work fine.

It is annoying that I can't seem to find the issue, but the information works out ok just as normal text.