+ Reply to Thread
Results 1 to 3 of 3

VBA excel to word insert footer (Text - Left align) & (Page number - Right align)

  1. #1
    Registered User
    Join Date
    02-19-2016
    Location
    US
    MS-Off Ver
    2007
    Posts
    74

    VBA excel to word insert footer (Text - Left align) & (Page number - Right align)

    Hi All,

    Wish you all Happy New Year.

    Am having word template that has footer with some text on the left side of the footer and Page X of Y on the right side. Please see below screenshot:
    Before.jpg

    I have data on excel that needs to be inserted on the footer of word document and hence wrote vba to perform this operation. Below is the entire VBA on excel:
    Please Login or Register  to view this content.
    Am storing required information in variable called "FooterText" and below line is inserting footer on the left side of the footer:
    Please Login or Register  to view this content.
    Since I also need page numbers to be displayed, I added below code:
    Please Login or Register  to view this content.
    But the problem is its inserting page numbers in numerals as 1, 2, 3 etc where as I want it to be inserted as Page 1 of 5, Page 2 of 5 etc.,

    Below is the screenshot of footer after running the macro:
    After.jpg

    I tried to google and searched in forum as well but didn't get much help. I really appreciate any help provided.
    Am attaching excel file and word document. Please let me know if any questions.

    Regards,
    Richa
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-19-2016
    Location
    US
    MS-Off Ver
    2007
    Posts
    74

    Re: VBA excel to word insert footer (Text - Left align) & (Page number - Right align)

    Hi Experts,

    Any help with this please?

  3. #3
    Registered User
    Join Date
    02-19-2016
    Location
    US
    MS-Off Ver
    2007
    Posts
    74

    Re: VBA excel to word insert footer (Text - Left align) & (Page number - Right align)

    Hi Admin,

    Can you please move this post under Microsoft Word group instead of Excel programming vba (if any)?

    Thanks,
    Richa

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to Align Bold Word Left or Right
    By Roco in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-17-2015, 07:07 PM
  2. Combobox Left Align Text that's too long to fit into cell
    By tigerlilly4321 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2013, 12:08 AM
  3. Combobox Text Align left not working
    By Schwizer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-16-2013, 01:31 PM
  4. Replies: 0
    Last Post: 06-07-2012, 10:48 PM
  5. how can I align excel page numbers with Word
    By Kenneth in forum Excel General
    Replies: 1
    Last Post: 06-15-2006, 07:35 PM
  6. Left align '$' and right align numbers?
    By skeetley in forum Excel General
    Replies: 1
    Last Post: 10-21-2005, 03:12 AM
  7. [SOLVED] Align Right footer text to Left
    By Joel Mills in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-30-2005, 05:05 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1