Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The Excel HELP file demonstrates how to test for data types in a PivotTABLE:
Set pvtTable = Worksheets("Sheet1").Range("A3").PivotTable Select Case pvtTable.PivotFields("ORDER_DATE").DataType Case Is = xlText MsgBox "The field contains text data" Case Is = xlNumber MsgBox "The field contains numeric data" Case Is = xlDate MsgBox "The field contains date data" End Select How do I test for DataTypes in a cell in a regular worksheet (my crude attempts are) msgbox ActiveCell.DataType msgbox Range("A1").DataType |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save as a dbf file changes datatype | Excel Discussion (Misc queries) | |||
listbox default datatype | Excel Programming | |||
need help- SUB: DATATYPE FOR A CELL.. | Excel Programming | |||
DataType Conversion | Excel Programming | |||
How do I change the datatype of a cell? | Excel Programming |