+ Reply to Thread
Results 1 to 2 of 2

Macro to Copy Dynamic Range from Table and Paste Values into a Table on a Different Sheet

  1. #1
    Registered User
    Join Date
    12-09-2019
    Location
    Antarctica
    MS-Off Ver
    2016
    Posts
    9

    Macro to Copy Dynamic Range from Table and Paste Values into a Table on a Different Sheet

    Using Excel 2016

    I want to take information from a table on a different tab and paste the values into the table I want to sort.

    I know it is easy enough to do this manually, but I'm creating this macro button to ease the functionality as this sheet will be used by someone who is not too excel-savvy. The table is currently populated by formulas, referring to a table on a different sheet, which is therefore preventing me from using filters/slicers to sort the information. If anyone knows formulas I can use in my table to allow sorting please share, however I believe this is only possible with static, locked-down cell references which won't work for this table.

    Details:
    1. Source table is named "PT" and resides on Sheet1(Proposals), destination table is named "ST" and resides on Sheet3(Summary)
    2. The source table I want to copy information from will regularly have rows added in, so the range selection needs to be dynamic (currently the range of data I want to copy is C19:G89, full table is currently B19:H89)
    3. I only want to copy a certain set of columns from the source table (C:G, column headers are (C)Project>(D)Category>(E)Vendor>(F)Proposal>(G)Task)
    4. The area in the destination table where I want to paste the values into is columns "B:F" (column headers are (B)Project>(C)Category>(D)Vendor>(E)Proposal>(F)Task, currently the area is B19:F89)

    The spreadsheet is attached. FYI, this is a work in progress and some things are not yet finalized.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-09-2021
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    148

    Re: Macro to Copy Dynamic Range from Table and Paste Values into a Table on a Different Sh

    Hello nickt94,

    I would do something like this to use the power of the listobjects you already created. Tested and works fine with your data.

    Does that work for you?

    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] Macro to copy range and paste values to first empty row of table
    By Grizraz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-19-2019, 02:07 AM
  2. Copy cell values, add a new row on table and paste them at the bottom of a table
    By ApexDmac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-24-2019, 11:00 AM
  3. Copy dynamic range from closed workbook paste as table into specific sheet
    By Huskersippi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-16-2019, 11:35 PM
  4. Copy and paste not working in dynamic table range!
    By dhcwong in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-04-2015, 01:33 AM
  5. How to copy pivote table details and paste (replace) with values only in same sheet
    By aleanboy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-09-2014, 01:50 PM
  6. [SOLVED] Macro to copy/paste dynamic range x times into same sheet
    By BigAl_Qld in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-19-2013, 03:48 AM
  7. VBA macro to Find a dynamic range of cells, copy then paste to another sheet
    By Bmxerdude2087 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-24-2012, 02:36 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