ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   "Errored" Cells in Data (https://www.excelbanter.com/excel-programming/445814-errored-cells-data.html)

Tim Childs[_4_]

"Errored" Cells in Data
 
Hi

If you put a large integer in a small column you get "###" displayed.
However, if you put a very large integer in a cell and then some 'helpful'
colleague accidentally formats it as a date, you get "#####" across the
column but it cannot be rectified by making the column wider. I think it is
an "overflow" condition. (selection.value gives an overflow error )

In the context of using data form a sheet where these events happen very
occasionally in the second case, is there an easy way to distinguish between
these cell entries in VB?

Many thanks, Tim



All times are GMT +1. The time now is 04:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com