Showing Properties-Dialog for Shapes (Microsoft Word)

M

Markus Heber

Hi,

I want to show a properties-dialog for a selected shape with VBA (MS Word).
Normally, this goes by

oMyShape.Select
oWordApp.Dialogs(wdDialogFormatBordersAndShading)

But if I do so in VBA, another dialog is opened than by choosing "Format /
Borders and Shading" in the Word-Menu.
There, a dialog with possibilities to set transparency and gradients is
opened.
In VBA, another dialog is opened. It is that one that is opened by the
Word-menu if text is selected and I choose "Format / Borders and Shading".
Does anyone know a possibility to open the suitable dialog for a shape ?

Thank you,

Markus
 
C

Cindy M -WordMVP-

Hi Markus,

Word is showing you the dialog box you ask for :) Try

Dialogs(wdDialogFormatDrawingObject)

Possibly with the DefaultTab = =
wdDialogFormatDrawingObjectTabColorsAndLines
I want to show a properties-dialog for a selected shape with VBA (MS Word).
Normally, this goes by

oMyShape.Select
oWordApp.Dialogs(wdDialogFormatBordersAndShading)

But if I do so in VBA, another dialog is opened than by choosing "Format /
Borders and Shading" in the Word-Menu.
There, a dialog with possibilities to set transparency and gradients is
opened.
In VBA, another dialog is opened. It is that one that is opened by the
Word-menu if text is selected and I choose "Format / Borders and Shading".
Does anyone know a possibility to open the suitable dialog for a shape ?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
Top