What are .NumberFormat Options In Excel VBA?
问题 Can you please let me know what are the .NumberFormat format options in Excel VBA? As you are fully aware Excel 2010 supports the following types: I know that we can set for example Text type as: .NumberFormat =\"@\" or for number: .NumberFormat = \"0.00000\" Can you please let me know what are other options for types in VBA? 回答1: Note this was done on Excel for Mac 2011 but should be same for Windows Macro: Sub numberformats() Dim rng As Range Set rng = Range("A24:A35") For Each c In rng