vba: find date from source & then copy and paste row containing matched date as values

rabrol

New Member
Joined
Nov 18, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi. New to VBA. I have looked and as of yet have not found a solution to my query.

I have an excel workbook with 2 sheets:

Date Ref = sheet containing Date reference (today()-1 i.e. yesterday) in cell F8.
Data Sheet = contains Date in column B and remainder columns containing formulas which will import values from other workbooks.

I would like VBA to:

1) Refresh data F9 (so that formulas in 'Data Sheet' are updated by looking up data in external workbooks. These workbooks would be manually open.
2) Once data refreshed and formulas show a value, VBA to look at 'Date Ref' sheet, cell F8 which contains a Yesterdays date
3) Then go 'Data Sheet', find the Row containing/matches F8 and then past over the same row as values to hardcode the values. E.g. if F8=18/11/2020, then it would copy and paste the entire row A9 as values (pastes over itself in Data Sheet A9).

For some reason MrExcel wont let me attach workbook which contains the information :(

Any assistance would be greatly appreciated.
 

Attachments

  • Date Ref.JPG
    Date Ref.JPG
    27.8 KB · Views: 5
  • Data Sheet.JPG
    Data Sheet.JPG
    163.1 KB · Views: 5

Some videos you may like

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Watch MrExcel Video

Forum statistics

Threads
1,118,278
Messages
5,571,282
Members
412,374
Latest member
Nagelgal
Top