+ Reply to Thread
Results 1 to 7 of 7

Need help with VBA to copy values only to a specific date in a grid

  1. #1
    Registered User
    Join Date
    04-03-2015
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365 Home 2013
    Posts
    5

    Need help with VBA to copy values only to a specific date in a grid

    Hi there

    I have little to no experience with VBA and am struggling to get my head around it and hope someone is able to assist with the following

    I have a document that holds a very large number of entries by date
    This file is updated every day with new information, however I am trying to figure out how to save the "last night" figures from one sheet to this sheet that holds all of the historical entries
    It is only 2 cells that need to be copied as values only - I have the "Button (Form Control)" done, and a csv file ready for the import of new data for after this step

    Thanks in advance to anyone that may be able to point me in the right direction

    Cheers
    Mike

  2. #2
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Need help with VBA to copy values only to a specific date in a grid

    Without sample data, it's going to be hard, can you share your csv and desired output?

    But to get yesterday in VBA, simply use "date - 1"

  3. #3
    Registered User
    Join Date
    04-03-2015
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365 Home 2013
    Posts
    5

    Re: Need help with VBA to copy values only to a specific date in a grid

    Hi @JasperD

    Thanks for your reply... it would be very difficult to provide the data as the file is very large and there are 5 csv files feeding into it
    However, where I need the VBA process to be applied is just between 2 of those worksheets, for example:

    Original data in "Sheet 1", C25 & G25
    Then the destination range of dates would be "Sheet 2", AV16:AX4632 - column AV is the column with the dates, AW & AX is where C25 & G25 data would need to go respectively

    Thanks in advance for any help

    Cheers
    Mike

  4. #4
    Registered User
    Join Date
    04-03-2015
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365 Home 2013
    Posts
    5

    Re: Need help with VBA to copy values only to a specific date in a grid

    Hi @JasperD

    Thanks for your reply... it would be very difficult to provide the data as the file is very large and there are 5 csv files feeding into it
    However, where I need the VBA process to be applied is just between 2 of those worksheets, for example:

    Original data in "Sheet 1", C25 & G25
    Then the destination range of dates would be "Sheet 2", AV16:AX4632 - column AV is the column with the dates, AW & AX is where C25 & G25 data would need to go respectively

    Thanks in advance for any help

    Cheers
    Mike

  5. #5
    Registered User
    Join Date
    04-03-2015
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365 Home 2013
    Posts
    5

    Re: Need help with VBA to copy values only to a specific date in a grid

    Hi @JasperD

    Thanks for your reply... it would be very difficult to provide the data as the file is very large and there are 5 csv files feeding into it
    However, where I need the VBA process to be applied is just between 2 of those worksheets, for example:

    Original data in "Sheet 1", C25 & G25
    Then the destination range of dates would be "Sheet 2", AV16:AX4632 - column AV is the column with the dates, AW & AX is where C25 & G25 data would need to go respectively

    Thanks in advance for any help

    Cheers
    Mike

  6. #6
    Registered User
    Join Date
    04-03-2015
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365 Home 2013
    Posts
    5

    Re: Need help with VBA to copy values only to a specific date in a grid

    Hi @JasperD

    Thanks for your reply... it would be very difficult to provide the data as the file is very large and there are 5 csv files feeding into it
    However, where I need the VBA process to be applied is just between 2 of those worksheets, for example:

    Original data in "Sheet 1", C25 & G25
    Then the destination range of dates would be "Sheet 2", AV16:AX4632 - column AV is the column with the dates, AW & AX is where C25 & G25 data would need to go respectively

    Thanks in advance for any help

    Cheers
    Mike

  7. #7
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Need help with VBA to copy values only to a specific date in a grid

    This doesn't help.
    I have no idea how to identify what your source cells would be?
    Always C25 & G25 ?
    And then look up yesterday's date in column AV in sheet2?

    Can you give some screenshots at least?

+ 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. Copy range to specific column with specific date with macro
    By SEERC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-29-2015, 03:09 AM
  2. Replies: 1
    Last Post: 10-29-2013, 02:11 AM
  3. Reference a date, then copy and transpose paste into a date specific location
    By nelmsd in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-26-2013, 03:30 PM
  4. Replies: 2
    Last Post: 12-15-2011, 04:14 AM
  5. [SOLVED] Macro to to get values for specific date and copy to cells
    By LLr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2005, 03:06 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