ItalianPlatinum
Well-known Member
- Joined
- Mar 23, 2017
- Messages
- 675
- Office Version
- 2021
- 2019
- 2016
- 2010
- 2007
- Platform
- Windows
I have a VBA that imports a file into the workbook that has the VBA in its own tab for usage.
There is one column that has the column as general format even though it is a date. As a result it is causing a formula to fail as it is looking for a date format vs a non date format. I tried setting the format via VBA .NumberFormat = "mm/d/yyyy" and it does set the format but it requires me to click into each cell to register the format.
My question: is there a fast VBA solution to "click into each cell" to register the format? I noticed even the way it is without me setting the format like stated above and just clicking into the cell it works. The file is quite large with 2500 rows and 15 columns. The column in question is column B and starts on B2 and could go vary each day how many rows.
There is one column that has the column as general format even though it is a date. As a result it is causing a formula to fail as it is looking for a date format vs a non date format. I tried setting the format via VBA .NumberFormat = "mm/d/yyyy" and it does set the format but it requires me to click into each cell to register the format.
My question: is there a fast VBA solution to "click into each cell" to register the format? I noticed even the way it is without me setting the format like stated above and just clicking into the cell it works. The file is quite large with 2500 rows and 15 columns. The column in question is column B and starts on B2 and could go vary each day how many rows.