Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-16-2014, 04:16 PM
Irrma Irrma is offline What's wrong with my loop? Windows 7 64bit What's wrong with my loop? Office 2010 64bit
Novice
What's wrong with my loop?
 
Join Date: Jun 2014
Posts: 2
Irrma is on a distinguished road
Default What's wrong with my loop?

Hi,

I am getting multiple footers in sections. Does anybody know what I am going wrong?

Sub AddFooter()
'
' AddFooter Macro
'
'
Dim i As Integer
ActiveDocument.PageSetup.OddAndEvenPagesHeaderFoot er = True
For i = 1 To ActiveDocument.Sections.Count

ActiveDocument.Sections(i).Footers(wdHeaderFooterP rimary).Range _
.InsertAfter "Odd Header"
ActiveDocument.Sections(i).Footers(wdHeaderFooterE venPages).Range _
.InsertAfter "Even Header"




Next i

End Sub

Please help.Thank you!!!
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
First 5 slides in a loop Joop PowerPoint 0 05-06-2014 09:30 AM
What's wrong with my loop? End or alter a loop? DJSOUND Word VBA 1 10-11-2013 08:11 PM
What's wrong with my loop? How to a For loop in VBA Jennifer Murphy Word VBA 1 01-29-2013 03:30 AM
While loop not working right Cbrehm Excel Programming 0 05-11-2011 11:05 AM
What's wrong with my loop? Continuous Loop cksm4 Word 6 01-06-2011 09:03 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:26 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