PC Review


Reply
Thread Tools Rate Thread

how can I create wordart using vba/macros

 
 
iangers
Guest
Posts: n/a
 
      9th Oct 2008
I want to be able to create Wordart sections in an excel workbook using
VBA/Macros. I can't find out how to add these items to the workbook and the
help isn't helpful, it just tells you how to do it using the menus.

Does any one know how to do this?
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      9th Oct 2008
Sub createWA()
Set newWordArt = MyDocument.Shapes.AddTextEffect
_(PresetTextEffect:=msoTextEffect 10, Text:="Watch This", _
FontName:=fnt(MyValue), FontSize:= 40, FontBold:=False, _
FontItalic:=False, Left:=ShpLeft250, Top:=ShpTop200)
End Sub

"iangers" wrote:

> I want to be able to create Wordart sections in an excel workbook using
> VBA/Macros. I can't find out how to add these items to the workbook and the
> help isn't helpful, it just tells you how to do it using the menus.
>
> Does any one know how to do this?

 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      9th Oct 2008
Needed a little more clean-up. I extracted this from code I had written
where I used arrays and variables for the font settings and I missed one of
the variables when I changed it for your use. This should now display a
phrase if run.

Sub createWA()
Set newWordArt = MyDocument.Shapes.AddTextEffect
_(PresetTextEffect:=msoTextEffect 10, Text:="Watch This", _
FontName:="Arial", FontSize:= 40, FontBold:=False, _
FontItalic:=False, Left:=ShpLeft250, Top:=ShpTop200)
End Sub


"iangers" wrote:

> I want to be able to create Wordart sections in an excel workbook using
> VBA/Macros. I can't find out how to add these items to the workbook and the
> help isn't helpful, it just tells you how to do it using the menus.
>
> Does any one know how to do this?

 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      9th Oct 2008
P.S. The AddTextEffect method is spelled out in the VBA help files You have
to press Alt + F11 to open the VB editor. Then use the help menu from the VB
editor screen to look for AddTextEffect. The Excel help menu has limited VBA
help information.

"iangers" wrote:

> I want to be able to create Wordart sections in an excel workbook using
> VBA/Macros. I can't find out how to add these items to the workbook and the
> help isn't helpful, it just tells you how to do it using the menus.
>
> Does any one know how to do this?

 
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
Where is the WordArt Shading Button in the WordArt Toolbar? Laly Microsoft Word Document Management 1 28th Nov 2008 11:26 PM
Macros attached to WordArt MWhaley Microsoft Excel Programming 3 18th Apr 2008 12:39 AM
Macros in Personal.xls that would create two toolbars and buttonswith assigned macros =?Utf-8?B?SmF5?= Microsoft Excel Programming 1 30th Mar 2007 12:02 AM
Hiding Shapes When Not WordArt , or When WordArt Text <> "Draft" Carroll Rinehart Microsoft Excel Programming 2 18th Sep 2004 07:40 PM
can I create macros Brad Microsoft Excel Setup 1 30th Mar 2004 03:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:43 PM.