PDA

View Full Version : Insert table into header



scopley
07-24-2014, 09:50 AM
Can someone help me with some code to insert a 1 row and 3 column table into a header?


Thanks

gmaxey
07-24-2014, 10:43 AM
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
ActiveDocument.Tables.Add ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Range, 1, 3
End Sub