A family of Microsoft word processing software products for creating web, email, and print documents.
So this is the macro I put into the new module under my specific project, and and when I push print it brings up the error at the bottom...
Sub FilePrint()
With ActiveDocument
.Shapes(Textbox19).Visible = msoFalse
.Shapes(Textbox26).Visible = msoFalse
' continue this list until all the text box indexes are included
.PrintOut Background:=False
.Shapes(Textbox19).Visible = msoTrue
.Shapes(Textbox26).Visible = msoTrue
' continue this list until all the text box indexes are included
End With
End Sub
Error Message: "The index into the specified collection is out of bounds"
It highlights the first line of code ".Shapes(Textbox19).Visible = msoFalse"
As a side note the way that I discovered the name of the textbox (which maybe is the problem....) was I did record macro and then from the home tab i pushed the select button (looks like a mouse pointer) and did select object. Then I selected the textbox I pasted the button into. I finished recording and just looked at what textbox was selected. If this method is wrong and gives me a different name then let me know and I can go back and figure out the names the way you said, but I think I have the correct names.