Re: MS Word Drawing Buttons via VBA
- From: "Jonathan West" <jwest@xxxxxxxx>
- Date: Thu, 13 Mar 2008 15:48:20 -0000
<szcz.andrew@xxxxxxxxx> wrote in message news:04925acb-db90-47b7-aa41-388b40e04b1a@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi All,
I'm trying to perform the equivalent of 'pressing' a drawing button
(line, circle, square, group, ungroup, etc.) in MS Word 2000+ (needs
to work with 2007 as well). I'm having problems figuring out how to
do this - most other functions I was able to simply run a macro or
perform using the appropriate VBA object. With the drawing functions,
I am having problems finding equivalent functionality in VBA or in the
macros - can anyone help?
Cheers,
Andrew
You insert an autoshape by adding to the Shapes collection of a document. Depending on the type of Shape you want to add, there are a variety of methods of the Shapes collection, e.g. AllCallout, AddLine, AddTextBox etc. Each method has a slightly different set of parameters appropriate to that shape type allowing you to specify what is inserted.
--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
.
- References:
- MS Word Drawing Buttons via VBA
- From: szcz . andrew
- MS Word Drawing Buttons via VBA
- Prev by Date: Re: Prevent user interection in unattended code process
- Next by Date: Re: Asymmetric Encryption in VBA
- Previous by thread: MS Word Drawing Buttons via VBA
- Next by thread: Power point automation problem with chart
- Index(es):