+ Reply to Thread
Results 1 to 3 of 3

Grabbing data from one sheet and moving it to a specific location in another sheet

  1. #1
    Registered User
    Join Date
    01-08-2019
    Location
    UK
    MS-Off Ver
    365
    Posts
    2

    Question Grabbing data from one sheet and moving it to a specific location in another sheet

    Good afternoon.

    I am currently working with a VBA heavy project and I have run into an issue that I am not quite able to work through.

    In one sheet I have a table containing data like this,

    columns A B C D


    01/04/2020 Name Value SWF
    01/04/2020 Name Value SWF
    01/04/2020 Name Value SWF
    01/04/2020 Name Value SWF
    01/04/2020 Name Value SWF
    01/04/2020 Name Value SWF
    01/04/2020 Name Value SWF
    01/04/2020 Name Value SWF



    I want to achieve the following.


    IF column D contains the text "SWF" select column D C and B and copy

    Paste the three columns of data to sheet "Fixed Point" in column H row 3

    Repeat for any remaining rows in the first sheet pasting a row down in the target sheet.

    This is my code

    Please Login or Register  to view this content.
    Whilst it appears to grab the correct data it pastes the data always into cell B2 C2 and D2 in the target sheet (Not H3, I3 and J3 like I'm intending) and then overwrites the same cells with the next line of data and so on. So I am left with the last row of data from the source sheet pasted into cells B2 C2 and D2 instead of a nice list of all the values I require in H, I, J 3 - 10.


    Can anyone help me with what I am doing wrong?


    From testing it seems that its the following section that needs tweaking to put the data in column H row 3, I just cant seem to make it work.


    Please Login or Register  to view this content.

    Kind regards

    Jon
    Last edited by BlackenedEDIT; 01-01-2020 at 02:54 PM. Reason: Solved

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

    Re: Grabbing data from one sheet and moving it to a specific location in another sheet

    Assuming there is a header...
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by sintek; 01-01-2020 at 02:26 PM. Reason: attached sample file
    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
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,192

    Re: Grabbing data from one sheet and moving it to a specific location in another sheet

    ..........................................
    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. Moving updated data to specific sheet
    By scrumpyjack in forum Access Tables & Databases
    Replies: 2
    Last Post: 02-22-2014, 10:19 AM
  2. [SOLVED] Copy data from specific location in sheet 1 to sheet 2
    By vignesh805 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-07-2013, 01:27 PM
  3. [SOLVED] Grabbing Data from one Sheet to new sheet (MACRO)
    By seannydj in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 11-18-2012, 06:53 AM
  4. Grabbing specific information from another sheet
    By gregbennett81 in forum Excel General
    Replies: 7
    Last Post: 08-24-2011, 07:48 PM
  5. Moving specific data to one sheet
    By fclt in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-03-2011, 10:24 PM
  6. Grabbing specific data from another sheet.
    By Qwest in forum Excel General
    Replies: 5
    Last Post: 01-28-2008, 02:49 PM
  7. Moving Specific Data from one Sheet to another
    By Althas in forum Excel General
    Replies: 7
    Last Post: 09-27-2006, 08:53 AM
  8. [SOLVED] Finding specific data and moving it to a new sheet
    By LauraD in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-10-2006, 06:14 AM

Tags for this Thread

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