Keep the data even after the date change
Solved/Closed
kal7667
Posts
1
Registration date
Saturday August 29, 2020
Status
Member
Last seen
August 29, 2020
-
Aug 29, 2020 at 04:24 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Sep 1, 2020 at 11:54 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Sep 1, 2020 at 11:54 AM
Related:
- Keep the data even after the date change
- How to change the dino in the dino game - Guide
- Change computer name cmd - Guide
- Facebook date of birth change - Guide
- Tmobile data check - Guide
- Change lg tv name - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Sep 1, 2020 at 11:54 AM
Sep 1, 2020 at 11:54 AM
Hi Kal,
The code below will change the formula's on your Report sheet (Change sheet name in code to match yours if necessary) to values when you open your workbook.
Here is the code:
To use the code, press Alt+F11, double-click ThisWorkbook on the left side and paste the code in the big white field. Save and close your workbook, re-open to see the result of the code.
Here is a picture to guide you:
Best regards,
Trowa
The code below will change the formula's on your Report sheet (Change sheet name in code to match yours if necessary) to values when you open your workbook.
Here is the code:
Private Sub Workbook_Open() Sheets("Report").Select 'Change the sheet name to match yours For Each cell In Range("A4:A" & Range("A4").End(xlDown).Row) If cell.Value = Date Then cell.Offset(0, 1).Value = cell.Offset(0, 1).Value cell.Offset(0, 2).Value = cell.Offset(0, 2).Value cell.Offset(0, 3).Value = cell.Offset(0, 3).Value End If Next cell End Sub
To use the code, press Alt+F11, double-click ThisWorkbook on the left side and paste the code in the big white field. Save and close your workbook, re-open to see the result of the code.
Here is a picture to guide you:
Best regards,
Trowa