+ Reply to Thread
Results 1 to 4 of 4

Pasting data between excel tables in 2 different tabs (same workbook)

  1. #1
    Registered User
    Join Date
    02-06-2019
    Location
    VA
    MS-Off Ver
    2013
    Posts
    3

    Pasting data between excel tables in 2 different tabs (same workbook)

    Hi,

    I have an excel(attached) file with 2 Tabs (Data, FinalResults). "Data" tab has a Table (Table1) which will have some data. the "Data" tab also has a button, which when clicked copies all the the data from Table1 and pastes it into "Table2" on the second tab (FinalResults). and following is the code used for the button on click action.


    Please Login or Register  to view this content.
    The problem is that the action is overwriting some of the existing text below Table2 in the FinalResults tab. I need help with modifying the above code to avoid the overwrite of the existing cells below the Table2. instead it should simply shift the cells below while pasting the data (the Tab "DesiredResults" is how I would like the output to be). just for information purposes I have added another tab "FinalResults_BeforCopy" so that you can see how the tab "FinalResults" looks before the button is clicked.

    any help is highly appreciated.

    ExampleData.xlsx
    Last edited by AliGW; 03-05-2019 at 05:35 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,756

    Re: Pasting data between excel tables in 2 different tabs (same workbook)

    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    As you are new here, I have added the requisite tags for you this time.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-06-2019
    Location
    VA
    MS-Off Ver
    2013
    Posts
    3

    Re: Pasting data between excel tables in 2 different tabs (same workbook)

    Ok Thank you Ali. I did not get any responses, so is it ok if I re-post? the question

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,756

    Re: Pasting data between excel tables in 2 different tabs (same workbook)

    No, there is no need. You have added the code tags - that is not why you are getting no responses. Maybe rephrase your requirement, but please do NOT open a new thread.

+ 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. dynamic macro to copy access tables data into excel tabs
    By Pi* in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-26-2018, 12:23 AM
  2. Copy pasting PDF tables to Excel and automatic data manipulation
    By DavidE21 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2018, 07:13 AM
  3. Delete All Tabs in Excel Workbook that Have No Data in Row 5
    By Lyndy Januszewski in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-16-2017, 09:01 AM
  4. Excel Workbook - move data between two tabs
    By trafficzombie in forum Excel General
    Replies: 4
    Last Post: 03-22-2016, 10:32 AM
  5. [SOLVED] Extract data from a workbook with multiple tabs, into a workbook with corresponding tabs
    By krackaberr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2013, 11:54 AM
  6. Pulling data from mutliple windows, and pasting the data in worksheets/tabs
    By msu4life in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2012, 07:01 PM
  7. Copy Pasting data from one excel workbook to another using vba
    By wahaj in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-10-2009, 02:50 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