View Single Post
 
Old 03-23-2022, 02:35 PM
Peterson Peterson is offline Windows 10 Office 2019
Competent Performer
 
Join Date: Jan 2017
Posts: 143
Peterson is on a distinguished road
Default

Quote:
Originally Posted by gorkac View Post
But when I right click on the template, the context menu shows Open, New, Print, Save as...etc. The New option opens a document based on the template, however the Open option opens the entire template.
Yes, that is how the program is designed to work, as I noted earlier. If you click Open, then Word opens the template file. If you click New, then Word creates a new document based on the template. This is simply how it works, and it cannot be changed, any more than I could, say, change the brake pedal on my car to control acceleration instead of stopping.
Quote:
Originally Posted by gorkac View Post
On the other hand, I have programmed a button on the ribbon to save in the appropriate format, based on the template, but none of the options work for me. And that the Document1 document that is opened is in docx format
Code:
Sub Docm(control As IRibbonControl)
              With Dialogs(wdDialogFileSaveAs)
            .Format = wdFormatXMLDocumentMacroEnabled
            .Show
      End With
 End Sub
I don't know exactly what you or your users are trying to do. I can't see what you're doing. Your users may be complaining that they want Microsoft's interface to work differently than the way it does -- see my brake pedal analogy.
It sounds like you need to open the actual template file, then save a copy of it as a docm file. You may need to write or find code that will open the template, then you can use your sub above to save it as a docm file, then close the template. Perhaps another member of this forum can help you with that, if needed.
Reply With Quote