+ Reply to Thread
Results 1 to 4 of 4

Word 2010 - SmartArt VBA, How to change size ?

  1. #1
    Registered User
    Join Date
    09-14-2012
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    3

    Word 2010 - SmartArt VBA, How to change size ?

    Hello,

    I'm writing a vba macro for Word where I create some SmartArt. I can change dynamicaly the size of the SmartArt withount problem for example with the code :

    Please Login or Register  to view this content.
    but I can't manage to find the proper syntax to change the size of the individual forms inside the SmartArt and the gap between them. Firstly I thought I had understood how to address those kind of properties, for example with the color of the border of the first form inside the SmartArt :

    Please Login or Register  to view this content.
    This code works well. But when i try to apply this to the width or height, this property apparently doesn't exist :

    Please Login or Register  to view this content.
    So does anyone could help me to find the good syntax to change Height, Width and "Gap" of the forms (node) indise a SmartArt ?

    Thank you very much for your help

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Word 2010 - SmartArt VBA, How to change size ?

    The Height property exists, but is apparently read-only:
    Please Login or Register  to view this content.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Registered User
    Join Date
    09-14-2012
    Location
    France
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Word 2010 - SmartArt VBA, How to change size ?

    Hi,

    Thank you very much for your help. If they are read-only as you says, it comes maybe from the fact that the size are given by the SmartArtLayout choosen and then can't be changed. But it is strange as we can do it manually withount problem, so I do understand why it is not possible to do the same by VBA. Anyway i will try do it with simple shapes instead that with SmartArt to have more control on them.

    Thank you again

  4. #4
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Word 2010 - SmartArt VBA, How to change size ?

    But it is strange as we can do it manually withount problem, so I do understand why it is not possible to do the same by VBA.
    That may be because MS hasn't fully developed the vba interface as yet. The alternative would be to use WordOpenXML (but it's no good asking me for help with that).

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1