Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-10-2017, 12:11 PM
macropod's Avatar
macropod macropod is offline 3 Column x of y Footer Windows 7 64bit 3 Column x of y Footer Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by jmltinc View Post
The report must be created by VBA (no Macro) and insert a Footer on each page.
Macros and VBA are the same thing...



Try:
Code:
Sub Demo()
Dim Tbl As Table
With ActiveDocument
  Set Tbl = .Tables.Add(Range:=.Sections(1).Footers(wdHeaderFooterPrimary).Range, NumRows:=1, NumColumns:=3)
  With Tbl
    .Cell(1, 1).Range.Text = "QMF 24 Rev D"
    With .Cell(1, 2).Range
      .Text = "Page   of  "
      .Fields.Add .Characters(6), wdFieldPage
      .Fields.Add .Characters.Last.Previous, wdFieldNumPages
    End With
    .Cell(1, 3).Range.Text = "PRM 05/Section 4.6"
  End With
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Header and footer aligned in the footer area ashiqghfr Word 2 07-23-2015 01:14 AM
3 Column x of y Footer documents saved with double column revert to single column when re-opened danw Word 6 04-08-2015 06:24 AM
How can I temporarily break a 3 column format in order to type a single column paragraph William P Word 1 01-04-2015 06:40 PM
Footer - more then one footer (auto fill text in slides) noodle PowerPoint 0 03-31-2013 04:50 AM
Two column format without affecting neither the page numbers nor the header or footer Jamal NUMAN Word 4 02-21-2012 03:20 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:45 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft