Starlight1
New Member
- Joined
- Jun 14, 2014
- Messages
- 3
Every 2-3 days, I update a data set and subsequently update pivot tables. The pivot table I am most concerned about has nine rows and two columns. The first column contains the status of our properties (i.e., rented, rehab, turnover) and the second column contains the number of properties that fit within each particular property status. Prior to updating the pivot tables I manually copy the date onto a summary sheet that has the same property statuses in column B, and the date corresponding to the pivot run along row 2. I am trying to create a Macro to appear on the summary sheet that will do the following:
1) Update all pivot tables in workbook
2) Determine today's date
3) Locate row 2 and find the last cell with a date in it.
4) If today's date is the same as the last date entered, reenter today's date. If today's date is after the last input date, enter today's date in the next available cell
5) Lookup the value in the updated pivot tables and insert them in the appropriate cells (i.e., the number of rented homes in the cell that matches the row corresponding to rented homes and the last column with a date entry in row 2.
6) I would then like all values set so that they do not change when the macro is rerun (unless rerun on the same day, in which case the last column would be rerun.
Can anyone help?!?
1) Update all pivot tables in workbook
2) Determine today's date
3) Locate row 2 and find the last cell with a date in it.
4) If today's date is the same as the last date entered, reenter today's date. If today's date is after the last input date, enter today's date in the next available cell
5) Lookup the value in the updated pivot tables and insert them in the appropriate cells (i.e., the number of rented homes in the cell that matches the row corresponding to rented homes and the last column with a date entry in row 2.
6) I would then like all values set so that they do not change when the macro is rerun (unless rerun on the same day, in which case the last column would be rerun.
Can anyone help?!?