Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-17-2015, 01:14 AM
Twizzle008 Twizzle008 is offline Macro Loop Help Windows 7 32bit Macro Loop Help Office 2010 64bit
Novice
Macro Loop Help
 
Join Date: Sep 2015
Posts: 6
Twizzle008 is on a distinguished road
Default

Hi

Thanks for this, it works except there is now a blank page between each payslip. The first employee number is in the first paragraph.

maybe it can be simplified by just finding the first employee number and bringing it to the top of the page. than looping this. If thats possible?



Thanks alot for your help.
Reply With Quote
  #2  
Old 09-17-2015, 02:19 AM
macropod's Avatar
macropod macropod is offline Macro Loop Help Windows 7 64bit Macro Loop Help Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,512
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 Twizzle008 View Post
Thanks for this, it works except there is now a blank page between each payslip. The first employee number is in the first paragraph.
That would only be possible if:
1. your document already had page breaks between payslips; or
2. you ran the macro twice.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 09-17-2015, 05:00 AM
Twizzle008 Twizzle008 is offline Macro Loop Help Windows 7 32bit Macro Loop Help Office 2010 64bit
Novice
Macro Loop Help
 
Join Date: Sep 2015
Posts: 6
Twizzle008 is on a distinguished road
Default

Hi

Yes the 2nd payslip is on the next page so by default there would be a page break already
Reply With Quote
Reply

Tags
macro, vba, word macro

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to loop through all cells in a table produced by a mail merge elh52 Word VBA 4 08-31-2014 10:50 PM
Macro Loop Help Loop Macro to Edit Date damaniam Word VBA 7 02-21-2014 07:12 AM
Macro Loop Help Loop Macro to Edit Date damaniam Word VBA 11 12-05-2013 08:28 AM
Macro Loop Help Macro to loop in Word Yamaha Rider Word VBA 2 02-07-2012 05:33 PM
Macro Loop Help Macro to loop in subfolders, change links, export xml data Catalin.B Excel Programming 2 09-08-2011 11:37 PM

Other Forums: Access Forums

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