Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-21-2011, 07:36 AM
watsonstudios watsonstudios is offline Need help with a macro Windows 2K Need help with a macro Office 2003
Novice
Need help with a macro
 
Join Date: May 2011
Posts: 5
watsonstudios is on a distinguished road
Default Need help with a macro

Anyone out there good with macros? I made a small macro that will insert a blank slide after every other slide. This is what it looks like:
Sub insert()
'
' Macro recorded 5/21/2011 by XXXXXXX
'

ActivePresentation.Slides.Add(Index:=2, Layout:=ppLayoutText).Select
ActivePresentation.Slides.Add(Index:=4, Layout:=ppLayoutText).Select
ActivePresentation.Slides.Add(Index:=6, Layout:=ppLayoutText).Select


ActivePresentation.Slides.Add(Index:=8, Layout:=ppLayoutText).Select
End Sub

Is there a way to modify this macro so that it will do this for 500 slides without having to paste 500 new lines in and change all the numbers manually??

There's got to be a simple line of code that will basically say "after every even number slide, insert blank".

Something like this:
ActivePresentation.Slides.Add(Index:=(after every even number slide), Layout:=ppLayoutText).Select

I'm not a programmer so I have no idea how to accomplish this but I'm sure it's possible.
Reply With Quote
Reply

Thread Tools
Display Modes


Other Forums: Access Forums

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