+ Reply to Thread
Results 1 to 3 of 3

Copy Paste Transpose from one workbook to other without replacing existing data

  1. #1
    Registered User
    Join Date
    06-28-2021
    Location
    Jakarta
    MS-Off Ver
    Microsoft 365
    Posts
    1

    Copy Paste Transpose from one workbook to other without replacing existing data

    Dear Friends

    I'm newbie in excel VBA script. i'm making a script that :
    1. Copy data from one sheet of workbook to another sheet of work book
    2. Paste the data and transpose the data ( from column to row)
    3. i can copy data from multiple sheet of workbook and paste to the same sheet of work book
    i have tried making a script, but everytime it paste new workbook, it replace the existing data. my wish is to not replace and add the data to the next empty row . Here is the script, i wish someone could help to take a look and advice the error. many thanks in advance and appreciate the help

    Please Login or Register  to view this content.
    Last edited by alansidman; 06-28-2021 at 09:35 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Copy Paste Transpose from one workbook to other without replacing existing data

    If you are wanting to "Append" the data everytime, you need to determine the last row in the column where you are pasting the data so that it starts from there.

    Finding the last used row you can do something like this: Replace the "A" with the column you want to use.
    Please Login or Register  to view this content.
    Then depending on where you need it, you can use it like so

    Please Login or Register  to view this content.
    Last edited by cubangt; 06-28-2021 at 09:50 AM.
    If you find the suggestion or solution helpful, please consider adding reputation to the post.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    24,029

    Re: Copy Paste Transpose from one workbook to other without replacing existing data

    Code Tags Added
    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.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] Copy cells with data and paste into another workbook and Tidying up existing macro
    By MikeWaring in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-21-2017, 12:28 PM
  2. [SOLVED] Copy multiple rows from one workbook & paste to another below existing data
    By RSa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2016, 02:32 PM
  3. Copy Data Paste Another Workbook Transpose automatically
    By sheneb91 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-15-2014, 10:21 AM
  4. Replies: 1
    Last Post: 05-29-2014, 11:02 AM
  5. Replies: 11
    Last Post: 11-04-2013, 04:32 PM
  6. Replacing the existing Data of workbooks on splitting Data in a Master workbook
    By anchuri_chaitanya in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-04-2012, 11:59 AM
  7. Code to copy, paste without replacing the existing data
    By share knowledge in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-04-2011, 05:50 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