Automatically change the cell from general to date
Closed
iamdinesh
Posts
69
Registration date
Tuesday 4 December 2012
Status
Member
Last seen
9 March 2018
-
9 Mar 2018 à 02:10
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 12 Mar 2018 à 13:07
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 12 Mar 2018 à 13:07
Related:
- Automatically change the cell from general to date
- How to change date format in excel - Guide
- How to change free fire account from facebook to google - Guide
- How to change computer name - Guide
- How to change lg tv name - Guide
- How to change idm language - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
12 Mar 2018 à 13:07
12 Mar 2018 à 13:07
Hi Deesh,
Have you created the file using your current Excel version or is it an 'old' file that you are now opening with your current Excel version?
Might be a conversion issue. So try to recreate your workbook.
In case that fails. The following code will change all cells to number format with 2 decimals on all sheets upon opening your workbook. First you need to implement the code, save your workbook and then re-open to see the result.
Code needs to be placed under ThisWorkbook:

Hopefully this will solve/help with your unusual query.
Best regards,
Trowa
Have you created the file using your current Excel version or is it an 'old' file that you are now opening with your current Excel version?
Might be a conversion issue. So try to recreate your workbook.
In case that fails. The following code will change all cells to number format with 2 decimals on all sheets upon opening your workbook. First you need to implement the code, save your workbook and then re-open to see the result.
Private Sub Workbook_Open()
Dim ws As Worksheet
For Each ws In Worksheets
With ws
.Cells.NumberFormat = "0.00"
End With
Next ws
End Sub
Code needs to be placed under ThisWorkbook:
Hopefully this will solve/help with your unusual query.
Best regards,
Trowa