Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word VBA

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 07-30-2014, 03:07 AM
gmbh gmbh is offline Windows XP Office 2010 32bit
Novice
 
Join Date: Jul 2014
Posts: 1
gmbh is on a distinguished road
Default a code that can change the layout for the headers and footers on each page automatically

programming language:VB.net 2005
Editor :Visual Studio
Desired File Extension
Program function: a number of document (rtf or doc files) can be assembled into one document (.rtf).
The files contain header and footer. The page layout can move from page to page between portrait and landscape mode.
Problem: Depending which layout has the first page, this layout is taken over for the headers and footers on all other pages, even if they have a different page layout. The headers and footers need to be adjusted manually in Word by now.
I need a code that can change the layout for the headers and footers on each page automatically.


Please do not hesitate to contact me for more information.
I look forward to any help
Thank you
Reply With Quote
  #2  
Old 07-31-2014, 04:24 AM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 16,989
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

Doing this would require different code for every kind of page layout you use - both now and in the future. It can't be done generically. For every document, therefore, the coding effort would likely be far greater than the effort required to do the same job manually.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd and Even Headers/Footers sarineochaos Word 1 02-04-2014 06:15 PM
Headers and Footers teza2k06 Word 1 05-14-2013 11:07 AM
Loss of headers, footers, page numbers thedukeofurl Word 27 07-24-2012 06:18 AM
Headers and Footers OverAchiever13 Word 1 05-27-2010 01:30 PM
Change Page Layout jeffcravener Outlook 0 12-20-2005 10:42 AM


All times are GMT -7. The time now is 06:42 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft