none
Adding a Word Template to a custom Ribbon RRS feed

  • Question

  • Hello, sure this is a nice easy answer.

    We have a custom ribbon and would like a button that opens a shared template. Can't find a way of doing it, I can add one to open the standard Word Templates page where you select from all the templates but can't work out how to add a direct one click button?

    Thanks

    Wednesday, August 9, 2017 10:11 AM

All replies

  • hi,

    in the OnAction callback of your custom button you could reference this sub:

    Public Sub CreateNew()
        Dim oDoc As Document
        Set oDoc = Documents.Add(Template:="the full name of your template")
    End Sub

    Lauro

    Thursday, August 10, 2017 8:37 AM