+ Reply to Thread
Results 1 to 4 of 4

How do I select a shape that I just pasted?

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    78

    How do I select a shape that I just pasted?

    How do I select a picture that I just pasted? I need to rotate it.

    Here is what I tried via macro recording:

    Please Login or Register  to view this content.
    The code works up until rotate because the shape does not get selected with the macro
    Last edited by bsapaka; 05-01-2014 at 12:28 PM.

  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: How do I select a shape that I just pasted?

    Hello bsapaka,

    The Shapes object is a collection of Shape objects on the worksheet. Any new addition to a Collection, will always be the last element of the collection. The last element can be retrieved using the Count property.
    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
    09-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: How do I select a shape that I just pasted?

    hmm it gives run-time error 438: Object doesn't support this property or method

  4. #4
    Registered User
    Join Date
    09-30-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: How do I select a shape that I just pasted?

    tweaked your code and got it work work

    Please Login or Register  to view this content.
    Thanks for the help, Leith Ross

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] A macro after setting onaction for a shape that will select the shape.
    By vonRobbo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-20-2014, 11:34 PM
  2. Select a shape based on a cell value and update the shape when value changes
    By BigAl99 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2013, 12:06 PM
  3. [SOLVED] Change Only Select Refs in Pasted Formula
    By Unifyzero in forum Excel General
    Replies: 4
    Last Post: 05-24-2013, 11:58 PM
  4. How to format pasted Shape in PPoint?
    By mclarke2030 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2013, 03:18 PM
  5. How to de-select pasted cells?
    By nsv in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-16-2007, 11:11 AM

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