Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-27-2012, 08:11 AM
tinfanide tinfanide is offline Difference between Slides.addSlide and Slides.Add? Windows 7 64bit Difference between Slides.addSlide and Slides.Add? Office 2010 32bit
Expert
Difference between Slides.addSlide and Slides.Add?
 
Join Date: Aug 2011
Posts: 310
tinfanide is on a distinguished road
Default Difference between Slides.addSlide and Slides.Add?

Code:
Sub AddSlides()

With ActivePresentation

''' the pCustomLayout parameter is the same as ppLayoutTitle?
    .Slides.AddSlide 1, .SlideMaster.CustomLayouts(1)

''' The ".Slides.Add" is auto-corrected as ".Slides.AddSlide", why?
    .Slides.Add 1, ppLayoutTitle
End With

End Sub
Please see the two comment lines.
Thanks.
Reply With Quote
  #2  
Old 12-27-2012, 07:52 PM
tinfanide tinfanide is offline Difference between Slides.addSlide and Slides.Add? Windows 7 64bit Difference between Slides.addSlide and Slides.Add? Office 2010 32bit
Expert
Difference between Slides.addSlide and Slides.Add?
 
Join Date: Aug 2011
Posts: 310
tinfanide is on a distinguished road
Default

From the articles
http://msdn.microsoft.com/en-us/libr...ice.14%29.aspx
and
http://msdn.microsoft.com/en-us/library/ff746586.aspx

It seems to me that addSlide allows users to use a custom layout but add allows users to use PpSlideLayout.

But why in PowerPoint 2010 does it correct me from add to addSlide but actually it does support "add"? Does that mean PowerPoint 2010 encourages users to use addSlide to add a new slide to the presentation and add is an old use?
Reply With Quote
  #3  
Old 12-29-2012, 07:48 AM
JohnWilson JohnWilson is offline Difference between Slides.addSlide and Slides.Add? Windows 7 64bit Difference between Slides.addSlide and Slides.Add? Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,823
JohnWilson will become famous soon enoughJohnWilson will become famous soon enough
Default

addslide is specific to 2007 onwards versions that support custom layouts. In these versions it is the default. All versions still support the legacy 2003 add method.
__________________
Microsoft PowerPoint MVP
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #4  
Old 12-29-2012, 11:55 PM
tinfanide tinfanide is offline Difference between Slides.addSlide and Slides.Add? Windows 7 64bit Difference between Slides.addSlide and Slides.Add? Office 2010 32bit
Expert
Difference between Slides.addSlide and Slides.Add?
 
Join Date: Aug 2011
Posts: 310
tinfanide is on a distinguished road
Default

Thanks. I see what it means now.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between Slides.addSlide and Slides.Add? how to advance between slides HarrietLouis PowerPoint 9 04-24-2012 03:55 AM
How to automate all slides Pemberton PowerPoint 1 11-09-2011 04:39 PM
Difference between Slides.addSlide and Slides.Add? Yes/No slides to take you to different sets of slides psrs0810 PowerPoint 2 08-17-2011 04:46 PM
Inserting slides between existing slides in 2003 watsonstudios PowerPoint 1 05-20-2011 08:15 PM
How many slides in a 30 min presentation barbara3010 PowerPoint 2 02-12-2009 10:12 AM

Other Forums: Access Forums - Senior Forums

All times are GMT -7. The time now is 01:04 PM.


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