+ Reply to Thread
Results 1 to 7 of 7

Data Record

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    26

    Data Record

    I have this macro which auto records the value in Worksheet Horse G9 and then pastes the data every 1 second into row C of the worksheet Data Capture.

    The first recorded value goes into C1 then one second later the newest recorded value goes into C2 then C3 and so on and so on.

    I was wondering how I could change the code so the first recorded value goes into C1 then 1 second later the new value goes into C1 and the first value recorded moves down 1 row into C2 and then when another value is recorded it again goes into C1 the existing C1 becomes C2 and the C2 value becomes C3 and so on and so.

    Please Login or Register  to view this content.
    Thank you for looking.

    Regards
    Gally

  2. #2
    Registered User
    Join Date
    04-14-2010
    Location
    NZ
    MS-Off Ver
    2007,2010
    Posts
    86

    Re: Data Record

    try this:

    Please Login or Register  to view this content.
    Last edited by Deamo; 11-26-2012 at 04:25 PM.

  3. #3
    Registered User
    Join Date
    10-25-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Data Record

    Hi Deamo

    What that is doing is still recording the macro as I had the macro originally set up but then pushing all the data down one row so in effect once its recorded 5 rows of data the first 5 rows are empty and then the next 5 have the data the way my macro was originally recording it, it's also over-riding the clock to auto update for some reason.

    Thank you for the suggestion though.

    Regards
    Gally

  4. #4
    Registered User
    Join Date
    04-14-2010
    Location
    NZ
    MS-Off Ver
    2007,2010
    Posts
    86

    Re: Data Record

    Can you post a copy of your spreadsheet?

    Is pushing the exsting value in C1 down 1 row not what you wanted? or is the entire row to be moved rather than just column C?

  5. #5
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Data Record

    Try this

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Data Record

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Registered User
    Join Date
    10-25-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Data Record

    Hi Deamo I tryed posting a copy of the sheet but the file was to large.

    Mike that code works.

    Thank you both for taking the time to look and post some ideas

    Regards

    Gally

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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