View Single Post
 
Old 04-13-2021, 06:57 AM
Lup Lup is offline Windows 10 Office 2013
Novice
 
Join Date: Jul 2018
Location: Finland and Spain
Posts: 15
Lup is on a distinguished road
Default Problem with "OpenAsDocument"

I have a Word macro that cleans up the styles attached to a document. It goes through all the styles and deletes all that are not built-in, in use, or present in the template attached to the document. It works OK, But:
It is necessary to open the template as a document to get at the Styles collection in it. That causes the template to pop up as a document on the screen. Quite an annoyance! Initially, it also screwed up the whole macro as it made the template the ActiveDocument, which didn't suit other procedures. That's now taken care of.
But how do I the template removed from the screen? Or made invisible?
_Lup
Reply With Quote