We then use this line of code to create an object reference to the Formatting toolbar, which is part of the Word CommandBars collection: Set objTool = objWord.CommandBars(“Formatting”) We begin by creating an instance of the Word.Application object and then setting the Visible property to True (just so we can see what’s going on). Set objTool = objWord.CommandBars(“Formatting”)Īs you can see, it’s a simple task – hide a toolbar – and an equally simple script. You want a script that can hide a specific toolbar in Microsoft Word, right? Well, how about this simple little script, which hides the Formatting toolbar: Set objWord = CreateObject(“Word.Application”)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |