Consulting

Results 1 to 2 of 2

Thread: Insert table into header

  1. #1
    VBAX Newbie
    Joined
    Jun 2014
    Posts
    4
    Location

    Insert table into header

    Can someone help me with some code to insert a 1 row and 3 column table into a header?


    Thanks

  2. #2
    Microsoft Word MVP 2003-2009 VBAX Guru gmaxey's Avatar
    Joined
    Sep 2005
    Posts
    3,334
    Location
    Sub ScratchMacro()
    'A basic Word macro coded by Greg Maxey
      ActiveDocument.Tables.Add ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Range, 1, 3
    End Sub
    Greg

    Visit my website: http://gregmaxey.com

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •