Results 1 to 1 of 1

Thread: How to Modify Header having table

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Apr 2019
    Posts
    1
    Rep Power
    0

    Question How to Modify Header having table

    Hello,

    I only have very basic and limited idea of coding and want to write a Macro in word file. I can understand a pre-written code and apply few tweeks into it but not able to write new VBA code. My objective is to take some input from user when new files with marco enables loads and as per use input to print values in Header.

    This will be a single time process when file created and header will remain same in complete document.

    Header in file is a table structured like below ( Screenshot also attached)

    header.jpg

    Using a similar file, I have created a form to save the variables and strings. Also written down upto below code


    Code:
     'Update the fields in the header and footer
            If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
                ActiveWindow.Panes(2).Close
            End If
            If ActiveWindow.ActivePane.View.Type = wdNormalView Or ActiveWindow. _
                ActivePane.View.Type = wdOutlineView Then
                ActiveWindow.ActivePane.View.Type = wdPrintView
            End If
            ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
    It's incomplete and i am not sure if this is correct. I want to make this table with logo and want to provide enter variable text highlited in yellow.

    Please help to achieve this.

    Please let me know if more information is required from my side.
    Attached Images Attached Images

Similar Threads

  1. Replies: 3
    Last Post: 06-07-2017, 05:27 PM
  2. Need help to modify the VBA code
    By jeremiah_j2k in forum Excel Help
    Replies: 8
    Last Post: 10-23-2014, 01:44 PM
  3. Try to modify printer defaults from access-vba
    By relui in forum Access Help
    Replies: 0
    Last Post: 10-24-2013, 02:56 PM
  4. Meger multiple file but header not same
    By rocky in forum Excel Help
    Replies: 14
    Last Post: 10-25-2012, 09:09 PM
  5. Council to modify code
    By PcMax in forum Excel Help
    Replies: 4
    Last Post: 02-05-2012, 11:03 PM

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
  •