How to format column to number format in Excel sheet?

后端 未结 3 532
终归单人心
终归单人心 2020-12-19 04:41

Below is the VBA code. Sheet2 contains all of the values in general format. After running the code, values in column \'C\' of Sheet3 contain exponential values for numbers

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-19 05:18

    Sorry to bump an old question but the answer is to count the character length of the cell and not its value.

    CellCount = Cells(Row, 10).Value
    If Len(CellCount) <= "13" Then
    'do something
    End If
    

    hope that helps. Cheers

提交回复
热议问题