+ Reply to Thread
Results 1 to 2 of 2

Why does Group index change when the group is Cut and Paste

  1. #1
    Registered User
    Join Date
    05-20-2013
    Location
    Uppsala Sweden
    MS-Off Ver
    Excel 2010
    Posts
    24

    Why does Group index change when the group is Cut and Paste

    I need to move a number of shapes and charts that are grouped together an had the got the name "Group 7". I want make a code to move this Group to Range A2.

    I Have tried to just select the Array Group and then "Cut" and then go to a specific range for example A2 and paste it there. But the next time I want to run the macro it doesent work because it has change name from "Group 7" to "Group 17".

    Do someone understand any of what I am trying to say here and have had the same problem. Useing Excel 2016.

    PLEASE HELP!!!

    Thanks in advance

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Why does Group index change when the group is Cut and Paste

    Apparently, when you cut and paste, Excel sees the pasted group as a New Group and automatically assigns the next group number to it. Haven't worked with groupings but maybe if you gave it a name instead of using the index number as a name, then it would retain the name even when moved.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

+ 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. Replies: 14
    Last Post: 01-12-2017, 01:41 PM
  2. [SOLVED] (VBA) How Assign Column Cell To Corresponding Group, and Paste Group Cells into Groups WS?
    By eryksd in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-08-2016, 06:18 PM
  3. [SOLVED] insert a row to every group and change color of every top row of group
    By sspreyer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-13-2014, 11:00 AM
  4. Replies: 1
    Last Post: 02-10-2014, 10:26 PM
  5. Replies: 0
    Last Post: 05-28-2013, 04:52 PM
  6. Replies: 2
    Last Post: 01-18-2013, 12:45 PM
  7. How do I group worksheets (Lotus 123 function is "Sheet>Group Shee
    By jaking in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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