PC Review


Reply
Thread Tools Rate Thread

Programatically (VBA) copy and paste all objects from a slide of anon-active presentation to current slide

 
 
quiquejbb
Guest
Posts: n/a
 
      22nd Mar 2010
Hey there,

I am trying to programatically copy all the contents of a specific
slide of a non-active presentation (powerpoint) into the current slide
of my active presentation.

If anyone can help me out with this I would really appreciate it.

All the best
 
Reply With Quote
 
 
 
 
Shyam Pillai
Guest
Posts: n/a
 
      22nd Mar 2010
You can access all the presentations that are open by their index numbers.
So to copy shapes from a specific slide you could use:

If Presentations(1).Slides(2).Shapes.Count > 0 Then
'Copy all shapes on the slide
Presentations(1).Slides(2).Shapes.Range.Copy

' Paste into the active slide
ActiveWindow.Selection.SlideRange.Shapes.Paste
End If


Regards,
Shyam Pillai

Image Importer Wizard
http://skp.mvps.org/iiw.htm


"quiquejbb" <(E-Mail Removed)> wrote in message
news:c91dec3c-202e-4cd0-8ffd-(E-Mail Removed)...
> Hey there,
>
> I am trying to programatically copy all the contents of a specific
> slide of a non-active presentation (powerpoint) into the current slide
> of my active presentation.
>
> If anyone can help me out with this I would really appreciate it.
>
> All the best


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to enable the objects to also be inserted into current slide in normal view, not just a selected slide Tyron Microsoft Powerpoint 1 23rd Jun 2005 02:25 AM
How do I get copy/paste to copy/paste text and not the whole page =?Utf-8?B?Q2Fyb2wgSi4=?= Microsoft Word Document Management 1 6th May 2005 09:03 PM
Objects, objects, so many objects! ;-) thechaosengine Microsoft Dot NET 11 18th Dec 2004 01:35 PM
Objects, objects, so many objects! ;-) thechaosengine Microsoft C# .NET 10 16th Dec 2004 05:04 PM
Link all objects/text boxes in one copy and paste? Al Franz Microsoft Word New Users 2 11th Apr 2004 11:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:01 PM.