Re: get ole objects from powerpoint
- From: "Brian Reilly, MVP" <Brian@xxxxxxxxxxxxxxxx>
- Date: Sat, 07 Jan 2006 12:42:13 -0500
I'd probably check each shape for the presence of a textframe and then
the presence of text and set a variable to the text string and change
teh text string incrementally in Word to add that string. But it would
be ugly since one would know the order to put it in Word doc, I don't
think.
Brian Reilly, MVP
On 6 Jan 2006 05:46:00 -0800, vonclausowitz@xxxxxxxxx wrote:
>This is what I have so far but it is not satisfactory.
>
>Sub TellAll()
>
>Dim arrShapes As Variant
>Dim iCount As Integer
>Dim objWord As Word.Application
>Dim objDoc As Word.Document
>ReDim arrShapes(0)
>
> Dim oSh As Shape
> For Each oSh In ActiveWindow.Selection.SlideRange(1).Shapes
> If oSh.Type = 7 Then
> arrShapes(iCount) = oSh.Name
> iCount = iCount + 1
> ReDim Preserve arrShapes(iCount)
> End If
> Next oSh
>
>For i = 0 To UBound(arrShapes) - 1
> ActiveWindow.Selection.SlideRange.Shapes(arrShapes(i)).Copy
>
> Set objWord = CreateObject("Word.application")
> objWord.Visible = True
>
> objWord.Documents.Add
> objWord.Selecti
on.Paste
> objWord.Dialogs(wdDialogFileSaveAs).Show
>
> objWord.Visible = True
>
>
> objWord.ActiveDocument.Close
> objWord.Visible = False
> objWord.Quit
>
> Set objWord = Nothing
>Next i
>
>End Sub
>
>because I use copy to get the content of the ole into word I miss
>things like header and footer.
>
>
>vonclausowitz@xxxxxxxxx schreef:
>
>> Hi All,
>>
>> I have a powerpoint slide with embedded some ole-objects (ie. word
>> files).
>> I want a VB code to extract all these worddocs and save them under a
>> certain name
>> in a certain folder.
>>
>> Anyone knows how to attchieve this?
>>
>> Regards
>>
>> Marco
>> The Netherlands
.
- References:
- get ole objects from powerpoint
- From: vonclausowitz
- Re: get ole objects from powerpoint
- From: vonclausowitz
- get ole objects from powerpoint
- Prev by Date: Automatic return to first slide
- Next by Date: Re: hyperlinks no longer open in powerpoint
- Previous by thread: Re: get ole objects from powerpoint
- Next by thread: Re: get ole objects from powerpoint
- Index(es):
Relevant Pages
|