+ Reply to Thread
Results 1 to 8 of 8

Paste Range into Group of sheets that are identified on another page

  1. #1
    Registered User
    Join Date
    08-26-2011
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    45

    Cool Paste Range into Group of sheets that are identified on another page

    I am working on a code that will identify a named range in cell B5 (this is done by use of data validation for user friendliness) What I need to do is program a button adjacent to these cells that when clicked will copy the range of (A7:F7) into the sheets in the named range. The named ranges are stored in a separate sheet named "Groups". So if "Group 1" was selected in the drop down it would refer to the items listed in the column that is labeled "Group 1" in the sheet "groups" and copy the values of range A7:F7 from the sheet titled "main page" to the sheets that are identified in that group of cells in this case the next available row of sheets "1", "2" and "3" as identified by "Group 1" in the sheet labeled "Groups". Hopefully that doesn't sound too confusing .


    I have attached a workbook with an example of what I need it to do with comments that identify what the cells would reference etc. The sheets also have a highlighted row that shows how it would look if the code was run and pasted into the appropriate range. The example has limited pages but the actual workbook would consistent of hundreds of groups/sheets and would be applied to hundreds of sheets.

    The user needs to be able to add sheets to groups at will by modifying or adding to the groups sheet. For instance adding a 10 to the next available row in Column A referring to Group 1 in sheet named "Groups" would mean the next time the button was pushed it would add the values of range A7:F7 to sheet "10" as well.

    Thank you for your help and time
    Last edited by Lmao; 04-22-2019 at 11:47 AM.

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: Paste Range into Group of sheets that are identified on another page

    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    08-26-2011
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    45

    Re: Paste Range into Group of sheets that are identified on another page

    I can get it to work in the example but i randomly am getting Run-time error '13'" Type mismatch on this line

    Please Login or Register  to view this content.


    In debug mode if i hover over the code it says (shtArr) part says type mismatch. This happens when I transfer the code to my actual workbook.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: Paste Range into Group of sheets that are identified on another page

    My bad...should have picked this up earlier...Some Groups only have 1 value...
    Try this...

    Please Login or Register  to view this content.
    Last edited by sintek; 04-22-2019 at 11:39 AM.

  5. #5
    Registered User
    Join Date
    08-26-2011
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    45

    Re: Paste Range into Group of sheets that are identified on another page

    I apologize. i had to remove information from the original document. However here is the actual document its missing several hundred sheets due to the file size limit. I think its due to the main page changing causing the code not to run as intended. I modified the values to this to see if it would work and it failed.

    Please Login or Register  to view this content.
    Last edited by Lmao; 04-22-2019 at 11:47 AM.

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: Paste Range into Group of sheets that are identified on another page

    See post 4

  7. #7
    Registered User
    Join Date
    08-26-2011
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    45

    Re: Paste Range into Group of sheets that are identified on another page

    Awesome thank you very much!

  8. #8
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,236

    Re: Paste Range into Group of sheets that are identified on another page

    ...........................................
    Thanks.gif

+ 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] Group data from multiple sheets in one file to a summary page
    By cprice4407 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-31-2018, 02:59 PM
  2. Replies: 0
    Last Post: 03-07-2018, 11:07 AM
  3. Possible to group only a range of cells across sheets
    By mcdmw in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 06-02-2015, 07:58 PM
  4. Ctrl+Shift+Page Up Automatically group sheets...
    By ronieson in forum Excel General
    Replies: 1
    Last Post: 05-14-2014, 08:37 AM
  5. Replies: 8
    Last Post: 01-09-2014, 08:01 PM
  6. Copying cell between sheets identified by adjacent label
    By Bookbaron in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-21-2011, 02:31 PM
  7. Print Sheets Identified by Checkbox
    By woods in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2008, 04:42 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