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: 6
  • Data Sheet.JPG
    Data Sheet.JPG
    163.1 KB · Views: 6

Some videos you may like

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Watch MrExcel Video

Forum statistics

Threads
1,119,088
Messages
5,576,040
Members
412,694
Latest member
Deaf1Too
Top