+ Reply to Thread
Results 1 to 6 of 6

Move data to a specific row in another sheet

  1. #1
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Move data to a specific row in another sheet

    Hi Experts,

    I need to Copy the data in Sheet1 A1:C1 to Sheet2 but based on the row number indicated in Sheet1 A1.

    So if A1 has 10 then the data on Sheet1 A1:C1 should be copied on Row 10 of Sheet2.

    Thank you for all your help!!!
    If I've helped U pls click on d *Add Reputation

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Move data to a specific row in another sheet

    try this

    Please Login or Register  to view this content.
    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

  3. #3
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Re: Move data to a specific row in another sheet

    Thanks alansidman.

    The script is working; however, i failed to indicate that A1:C1 contains a formula and their values are derived from another cell within the same sheet.

    So for example A1 =k14


    When I run the macro the command sometimes copy the formula (=K14) and not the value.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Move data to a specific row in another sheet

    If that is the case, then you need to change the paste to paste special. The following line needs to change

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Re: Move data to a specific row in another sheet

    Awesome!!!

    i didn't know that putting the PasteSpecial command on the 2nd line makes all the difference.

    Thanks man for all the help. Appreciate it!!!

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Move data to a specific row in another sheet

    Every day is a learning experience on this forum for everyone.

+ 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. Need to move specific data from sheet 1 to sheet 2
    By garyclark21 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-18-2015, 07:43 PM
  2. How to move specific data from one sheet to another using VBA
    By ndnoutlaw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2015, 09:26 PM
  3. VBA to move data from master sheet to specific sheet
    By cost15254 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-02-2014, 03:37 PM
  4. Move row data to a specific sheet if column contains specific word
    By Kennethc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2014, 06:55 PM
  5. [SOLVED] Trying to move specific range to a specific sheet based on data in certain column
    By cain2011 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-01-2013, 08:09 AM
  6. [SOLVED] Move rows of data from one sheet to another based on specific values of sheet
    By buntalan80 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-26-2013, 06:21 AM
  7. Selecting Specific Data to copy/move to a new sheet
    By ksp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-06-2005, 03:32 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