Renaming, Reordering, and Grouping Shapes in Excel 2007 and 2010

Updated on July 27, 2019
profile image

Robbie mostly writes about Skyrim but also occasionally sheds light on the oddities of Microsoft applications such as Excel and Outlook.

Rename, Regroup, and Reorder Shapes in Excel
Rename, Regroup, and Reorder Shapes in Excel

Shapes can add visual impact and function to your worksheets. Shapes allow you to direct the attention of a user, hyperlink to other parts of your workbook, and even run a Visual Basic code. These three ways to change shapes will help you increase the readability of your worksheet in Excel.

  • Renaming shapes is often necessary for clarity and organization. Excel will name your shapes for you with names such as Rectangle 1 or Right Arrow 7.
  • Reordering shapes is necessary for coding shapes with Visual Basic. When shapes are ordered in the order they are made, manipulating them using Visual Basic is tricky.
  • Adding shapes to groups so that they can be moved and changed as a single item allows changes to be made to many shapes more efficiently.

Figure 1: Thematic chart created in Excel 2007 and Excel 2010 created using shapes and Visual Basic code.
Figure 1: Thematic chart created in Excel 2007 and Excel 2010 created using shapes and Visual Basic code. | Source

Renaming Shapes

Renaming shapes allows the user (you!) to more easily identify shapes and write Visual Basic code for those shapes.

There are two ways of renaming shapes: through selecting the shape and through the selection pane.

1. Selecting the Shape

Select a shape in your workbook. The name of that shape appears in the box to the left of the formula bar as shown in Figure 2 (you can see my shape is called "Montana").

To change the name, simply rename it in the box in the upper left and click Enter or Return to confirm it.

Figure 2: Identifying the name of a shape in Excel 2007 or Excel 2010.
Figure 2: Identifying the name of a shape in Excel 2007 or Excel 2010. | Source

2. The Selection Pane

  • To access the Selection Pane, first, select a shape
  • Navigate to the Drawing Tools group of tabs and select the Format tab
  • In the Arrange group on that tab, select the Selection Pane button
  • This will open the pane to show you all the shapes on the active sheet, as seen in Figure 3.
  • From here, you can rename any of the shapes by clicking on the name and then making changes.

The list of shapes is not an alphabetic list, shapes are listed in the order they were created. The list of shapes will not re-sort itself automatically.

Figure 3: Use the Selection Pane in Excel 2007 and Excel 2010 to re-name and re-order shapes.
Figure 3: Use the Selection Pane in Excel 2007 and Excel 2010 to re-name and re-order shapes. | Source
Figure 4: Re-ordering shapes in Excel 2007 and Excel 2010 using the Selection Pane.
Figure 4: Re-ordering shapes in Excel 2007 and Excel 2010 using the Selection Pane. | Source

Re-ordering Shapes

When you rename shapes in Excel, they remain in the order that they were created. This makes it difficult to use the shapes in a Visual Basic script.

The U.S. Map Example

My thematic chart of the United States uses Visual Basic code that pulls data from an external website and changes the fill color of the shape representing each state based on the data provided.

The data provided lists the states in alphabetical order. If the shapes are not also in alphabetical order, the thematic chart will not accurately represent the data. Figure 3 shows the states out of alphabetical order, and, thus, misrepresenting data pulled from the external site.

Key to Arranging Shapes in Excel

First Menu Option
Second Menu Option
Result
Bring to Front
Bring to Front
Shape is moved to the very top of the list
 
Bring Forward
Shape is moved one place higher
Send to Back
Send to Back
Shape sent to the very bottom of the list
 
Send Backward
Shape moves one place lower

Reordering Shapes Using the Selection Pane

  • Select a shape you want to re-order
  • Right-click on the shape in the worksheet
  • The two options you will need to use to move the shape are Bring to Front and Send to Back, as seen in Figure 4.
  • Figure 5 shows that my shapes are ordered in reverse alphabetical order. The states are now listed in the same order as my data.

Now when I run my Visual Basic macro, I get a thematic chart that is consistent with the data provided from the external source per Figure 5 and Figure 6.

Click thumbnail to view full-size
Figure 5: Shapes now all correctly ordered using the Selection Pane in Excel 2007 and Excel 2010.Figure 6: Thematic chart showing the correct output data due to correctly ordered shapes in Excel 2007 or Excel 2010.
Figure 5: Shapes now all correctly ordered using the Selection Pane in Excel 2007 and Excel 2010.
Figure 5: Shapes now all correctly ordered using the Selection Pane in Excel 2007 and Excel 2010. | Source
Figure 6: Thematic chart showing the correct output data due to correctly ordered shapes in Excel 2007 or Excel 2010.
Figure 6: Thematic chart showing the correct output data due to correctly ordered shapes in Excel 2007 or Excel 2010. | Source

How to Group and Ungroup Shapes

Grouping shapes allows for multiple changes made to many shapes at once. Moving shapes in a group keeps them in the same position relative to one another. There are two ways to group shapes:

1. Grouping Shapes By Selection

  • Select all the shapes you want to place in the group
  • Right-click and select Group and to group

2. Grouping Shapes Using the Format and Arrange Tab

  • Select the Format tab which is part of Drawing Tools. Click the Group button which is in the Arrange group
  • To ungroup a group of shapes, repeat the above steps but select Ungroup rather than Group.

Figure 7 shows a group of shapes called Group 12. The group as a whole can be selected and the properties of all shapes in the group configured. The whole group can be moved by selecting it.

Figure 7: Shapes added to a group called Group 12 in Excel 2007 and Excel 2010.
Figure 7: Shapes added to a group called Group 12 in Excel 2007 and Excel 2010. | Source

Ungroup, Reselect, and Rename Shapes

If you're concerned about the ability to ungroup and reselect single shapes in your worksheet, never fear:

  • If these shapes were part of a previous group, there will also be an option to regroup.
  • You can rename the group in exactly the same way you rename a shape.
  • Should you want to change a single shape within the group, select the group and then click on an individual shape to change its individual properties. This is shown in Figure 8.

Figure 8: Selecting a single shape within a group in Excel 2007 and Excel 2010.
Figure 8: Selecting a single shape within a group in Excel 2007 and Excel 2010. | Source

Conclusion

Shapes are very useful and versatile elements for making spreadsheets with visual impact. Shapes allow users to navigate around your workbook using hyperlinks, or run code at the click of a button.

I hope you found this article useful and informative. Please leave any comments, questions, or concerns below.

This article is accurate and true to the best of the author’s knowledge. Content is for informational or entertainment purposes only and does not substitute for personal counsel or professional advice in business, financial, legal, or technical matters.

© 2013 Robbie C Wilson

Comments

    0 of 8192 characters used
    Post Comment
    • profile image

      Yaseen Sallam 

      16 months ago

      Great

      Thank you

    • profile imageAUTHOR

      Robbie C Wilson 

      4 years ago

      Thanks for your kind comment, I am so glad that you found it useful and informative.

    • pinkhawk profile image

      pinkhawk 

      4 years ago from Pearl of the Orient

      I'm lucky to find this, thanks for this interesting hub! I'll come back to check the other links as well.

    working

    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, turbofuture.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://turbofuture.com/privacy-policy#gdpr

    Show Details
    Necessary
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
    Features
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Marketing
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Statistics
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
    ClickscoThis is a data management platform studying reader behavior (Privacy Policy)