C
Cresta
Hello all.
Can anybody help. I have a VS2005 Word addin and would like to set words
default font values as shown when the addin starts. In the code below I
cannot work out what is to replace the ??????. Can anybody help?
Imports Extensibility
Imports System.Runtime.InteropServices
Imports Microsoft.Office.Core
Imports Word = Microsoft.Office.Interop.Word
-----------------------------------------------------------
Sub Onstartup()
With applicationObject.ActiveDocument.Styles(?????.wdStyleNormal).font()
.Name = "Arial"
.Size = 11
.Bold = False
'etc...
End With
End sub
Can anybody help. I have a VS2005 Word addin and would like to set words
default font values as shown when the addin starts. In the code below I
cannot work out what is to replace the ??????. Can anybody help?
Imports Extensibility
Imports System.Runtime.InteropServices
Imports Microsoft.Office.Core
Imports Word = Microsoft.Office.Interop.Word
-----------------------------------------------------------
Sub Onstartup()
With applicationObject.ActiveDocument.Styles(?????.wdStyleNormal).font()
.Name = "Arial"
.Size = 11
.Bold = False
'etc...
End With
End sub