+ Reply to Thread
Results 1 to 7 of 7

How do edit a Specific Shape?

  1. #1
    Valued Forum Contributor
    Join Date
    04-24-2014
    Location
    United States
    MS-Off Ver
    Office 365 ProPlus
    Posts
    853

    How do edit a Specific Shape?

    I have workbook that includes a Shape with a hyperlink to 'Return to Index' of the workbook. That shape is called "Rounded Rectangle 2"

    Is there to edit the that shape name in VBA? I would like to change the actual shape to perhaps to smaller size (and perhaps to an oval).

    I think Once I understand that, I can then loop all the worksheets and update that shape through out the entire workbook.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: How do edit a Specific Shape?

    Why not try recording a macro while you make changes to the shape and taking it from there? Post back with some code if you get stuck.

  3. #3
    Valued Forum Contributor
    Join Date
    01-03-2016
    Location
    Conwy, Wales
    MS-Off Ver
    2016
    Posts
    974

    Re: How do edit a Specific Shape?

    Unfortunately Excel does not contain a Morph function. So cannot turn one shape into another.
    So what needs to be done is to insert a new shape (Oval), attach a hyperlink to it, and delete the old shape (Rounded Rectangle).


    Here is a macro that will copy a shape (based on its name) from the active sheet to cell A1 in every other sheet.
    To run in attached workbook {ctrl} + t

    Please Login or Register  to view this content.
    Attached Files Attached Files
    If a response has helped then please consider rating it by clicking on *Add Reputation below the post
    When your issue has been resolved don't forget to mark the thread SOLVED (click Thread Tools at top of thread)

  4. #4
    Valued Forum Contributor
    Join Date
    04-24-2014
    Location
    United States
    MS-Off Ver
    Office 365 ProPlus
    Posts
    853

    Re: How do edit a Specific Shape?

    Thanks Kevin.

    I haven't tried to change the shape yet, but that would make sense to need to create a new one and delete the new one.

    For now, I'm trying to just edit the existing Shape.

    I used the recorded to do some changes. But I can't seem to figure how to determine and Shape Name to loop and only update that particular shape in other worksheets.

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    01-03-2016
    Location
    Conwy, Wales
    MS-Off Ver
    2016
    Posts
    974

    Re: How do edit a Specific Shape?

    To find the shape name - select it and look in the name box (bottom left of ribbon)


    Edit
    Looking at your code the name is probably "Rounded Rectangle 1"
    Worth check that it is called the same name in all sheets
    Last edited by Kevin#; 04-06-2016 at 12:19 PM.

  6. #6
    Valued Forum Contributor
    Join Date
    04-24-2014
    Location
    United States
    MS-Off Ver
    Office 365 ProPlus
    Posts
    853

    Re: How do edit a Specific Shape?

    Thanks Kevin

    Making progress, and the below is currently working

    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor
    Join Date
    01-03-2016
    Location
    Conwy, Wales
    MS-Off Ver
    2016
    Posts
    974

    Re: How do edit a Specific Shape?

    Good -
    Do you need the same line repeated?

    If you are only making one change, try this line
    Please Login or Register  to view this content.
    and delete lines
    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)

Similar Threads

  1. [SOLVED] VBA - Code that will assign a specific macro to a specific shape
    By MsBBStacker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2015, 07:44 AM
  2. Creating a shape in a specific cell based on a value
    By Luke94 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-09-2015, 05:48 AM
  3. Replies: 1
    Last Post: 06-30-2013, 05:58 PM
  4. vba code to edit hyperlink attached to a shape in powerpoint 2010
    By niks in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-30-2012, 05:00 AM
  5. Replies: 2
    Last Post: 12-15-2011, 12:13 PM
  6. Selecting a specific shape
    By mwc48910 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2011, 05:33 PM
  7. [SOLVED] Re: Determine shape name associated with a specific cell
    By Dave Peterson in forum Excel General
    Replies: 0
    Last Post: 05-11-2005, 08:06 PM

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