+ Reply to Thread
Results 1 to 3 of 3

Resizing shapes with VBA 2003

  1. #1
    Registered User
    Join Date
    01-07-2011
    Location
    Piacenza, Italy
    MS-Off Ver
    Excel 2010
    Posts
    24

    Resizing shapes with VBA 2003

    I work with excel and vba 2010.

    To resize an image I use the following code


    Please Login or Register  to view this content.

    The first statement reduces the image size to 4% of its original size, while the second one restore the image to its original size.

    This code works with vba 2010 and 2007.

    Under excel 2003 it is executed but nothing happens.

    I haven't excel 2003. Is there anybody who can help me?
    Last edited by gm13958; 02-27-2011 at 05:20 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Resizing shapes with VBA 2003

    Hello gm13958,

    The syntax is almost the same. In Excel 2003 you need to qualify the selection with the word Application. Unless you are changing only the scale of the height, you should also include the width. Also, only if the selection is either a picture or an OLE object can you specify the second argument (RelativetoOriginalSize) as msoTrue.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    01-07-2011
    Location
    Piacenza, Italy
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Resizing shapes with VBA 2003

    Thank you very much. it works!

+ 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