Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ConvertToArtistic

3 views
Skip to first unread message

Mike

unread,
Jan 19, 2001, 11:08:55 PM1/19/01
to
How do i use ConvertToArtistic to convert all paragraph text in my document
to artistic text. Could someone please note code for doing this. I would
really appreciate it, Thank You -Mike


Alex Vakulenko

unread,
Jan 20, 2001, 1:38:38 PM1/20/01
to
Hi Mike,


Here is a VBA code for you:

'=====================
Sub ConvertParagraphToArtistic()
Dim s As Shape
For Each s In ActiveDocument.ActivePage.Shapes
ConvertShape s
Next s
End Sub

Private Sub ConvertShape(s As Shape)
Dim ss As Shape
Select Case s.Type
Case cdrTextShape
If s.Text.Type = cdrParagraphText Then
s.Text.ConvertToArtistic
End If
Case cdrGroupShape
For Each ss In s.Shapes
ConvertShape ss
Next ss
End Select
End Sub
'=====================

I hope this helps.


--
=============================
Alex Vakulenko, al...@vakcer.com
http://www.vakcer.com/oberon


Mike

unread,
Jan 20, 2001, 9:18:12 PM1/20/01
to
Thank you so much I tried for hours trying to get that
-Mike

Adam Twardoch

unread,
Jan 28, 2001, 5:11:27 PM1/28/01
to
"Alex Vakulenko" <al...@vakcer.com> wrote in message news:3a69db2c@cnews...

> Case cdrGroupShape
> For Each ss In s.Shapes
> ConvertShape ss
> Next ss

Recurrence. :) Good :) I'll remember this one, it's actually kind of
universal.

A.

0 new messages