AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 2,134
- Office Version
- 2019
- 2010
- Platform
- Windows
Struck this a few years ago and can't remember what fixed it.
I'm clearing a sheet by Worksheets("Sheet1").Cells.ClearContents then filling parts of it with .Cells(row, column)=
Datatypes are mixed and what shows in the worksheet does not always follow, e.g. "1" may appear as 00 Jan 00.
Is there a way to set up the worksheet so whatever the datatypes are, keep their format?
Or do I need to set every individual cell format prior to assigning a value?
I'm clearing a sheet by Worksheets("Sheet1").Cells.ClearContents then filling parts of it with .Cells(row, column)=
Datatypes are mixed and what shows in the worksheet does not always follow, e.g. "1" may appear as 00 Jan 00.
Is there a way to set up the worksheet so whatever the datatypes are, keep their format?
Or do I need to set every individual cell format prior to assigning a value?