![]() Update may be on to something the table has its own style as well. I just want the button to toggle the text and the Table to hide every time it the button is pressed and when the document is open and closed. ThisDocument.Styles("HideText").Font.Hidden = Not ThisDocument.Styles("HideText").Font.Hidden Is there something I am doing wrong ? Here is the code in VBA Private Sub CommandButton1_Click() Then I saved it and closed the document but when I opened up the document I saw that the only thing that was hidden was the words inside the table, the table lines are not hidden and when I toggle the button the only thing hiding is the text. Now when I first set it, I thought I got it working I got it all styled and titled and when I clicked the button the table would disappear. I am working on a word document and made a command button that is suppose to hide a table.
0 Comments
Leave a Reply. |