Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Publisher / Programming / March 2007

Tip: Looking for answers? Try searching our database.

Add shape with custom styling?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cory - 20 Mar 2007 13:33 GMT
Is there a way to invoke an add shape command similar to what you get when
you press the tool bar buttons?

Instead of:
ActiveDocument.Pages(1).Shapes.AddShape (msoSomeShape, x, y, H, W)

Is there a way to add that shape by issuing the command that the tool bar
button does so that (in the case of simple shapes) your first click sets the
shape there, or (in the case of lines, polylines and polygons) your clicks
create initial, intermediate and terminal points?

I am trying to create a userform with buttons that will create these shapes,
then apply formatting to the shape once it is placed.

Cory
Cory - 20 Mar 2007 13:37 GMT
My apologies, I meant to include that I am using Office XP with Publisher
2002 also.

Cory

> Is there a way to invoke an add shape command similar to what you get when
> you press the tool bar buttons?
[quoted text clipped - 11 lines]
>
> Cory
Cory - 20 Mar 2007 22:30 GMT
OK, I have figured out how to invoke those commands via the buttons (e.g.
Publisher.CommandBars("BlockArrows").Controls("16").Execute).  However I
still have to go in and manuallly set up the formatting.  Is there a way that
I can tell the macro to pause until the shape has been placed to select it
and apply formatting?  

Cory
I Wrote:
> > Is there a way to invoke an add shape command similar to what you get when
> > you press the tool bar buttons?
> > Cory

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.