+ Reply to Thread
Results 1 to 7 of 7

WordArt: Move and Size with Cells

  1. #1
    Registered User
    Join Date
    03-14-2013
    Location
    Beaverton, OR
    MS-Off Ver
    Excel 2010
    Posts
    5

    WordArt: Move and Size with Cells

    Please help me figure this out (see VBA code below). I'm trying to use VBA to insert a Word Art and have its position set to "move and size with cells", however it's not working. When I run the macro, I get runtime error, the item with the specified name wasn't found. What I am I doing wrong? There is probably an easy fix, I'm just new to this. Thanks in advance for your help.


    Private Sub CommandButton1_Click()
    Worksheets(1).Shapes.AddTextEffect _
    PresetTextEffect:=msoTextEffect5, Text:="WordArt", _
    FontName:="Calibri (Body)", FontSize:=26, _
    FontBold:=msoTrue, FontItalic:=msoFalse, Left:=580, _
    Top:=95

    Sheets("Sheet1").Shapes("WordArt").Placement = xlMoveAndSize

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: WordArt: Move and Size with Cells

    try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-14-2013
    Location
    Beaverton, OR
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: WordArt: Move and Size with Cells

    Thanks for the response. I get error message using that code: "Run-time error '9': Subscript out of range."

  4. #4
    Registered User
    Join Date
    03-14-2013
    Location
    Beaverton, OR
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: WordArt: Move and Size with Cells

    Quote Originally Posted by dsv2kx View Post
    Thanks for the response. I get error message using that code: "Run-time error '9': Subscript out of range."
    Btw, I'm using Excel 2007 so I have to do it manually...there is no way to record a macro and see the VBA code. Any help will be appreciated.

  5. #5
    Registered User
    Join Date
    03-14-2013
    Location
    Beaverton, OR
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: WordArt: Move and Size with Cells

    Can anyone please help?

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: WordArt: Move and Size with Cells

    are you able to provide a sample? i am not having this issue in my code

  7. #7
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,543

    Re: WordArt: Move and Size with Cells

    Not very elegant but until something better crops up, this might do.


    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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