Here you go...try this...
Sub Macro1()
Sheets("MySheet").Range("AN2").Select
Do
Select Case Range("AN2").Value
Case Is = "AMOUNT"
Range("AG2").Value = "DECIMAL"
Range("AH2").Value = "18"
Range("AI2").Value = "3"
Case Is = "IDENTIFIER"
Range("AG2").Value = "BIGINT"
Range("AH2", ["AI2"]).Value = " "
Case Is = "CODE"
Range("AG2").Value = "CHAR"
Range("AH2").Value = "6"
Range("AI2").Value = " "
Case Is = "COUNT"
Range("AG2").Value = "SMALLINT"
Range("AH2", ["AI2"]).Value = " "
Case Is = "DATE"
Range("AG2").Value = "DATE"
Range("AH2", ["AI2"]).Value = " "
Case Is = "DATE"
Range("AG2").Value = "DATE"
Range("AH2", ["AI2"]).Value = " "
Case Is = "DESCRIPTION"
Range("AG2").Value = "CHAR"
Range("AH2").Value = "50"
Range("AI2").Value = " "
Case Is = "INDICATOR"
Range("AG2").Value = "CHAR"
Range("AH2").Value = "1"
Range("AI2").Value = " "
Case Is = "PERCENT"
Range("AG2").Value = "DECIMAL"
Range("AH2").Value = "9"
Range("AI2").Value = "5"
Case Is = "RATE"
Range("AG2").Value = "DECIMAL"
Range("AH2").Value = "7"
Range("AI2").Value = "5"
Case Is = "SCORE"
Range("AG2").Value = "SMALLINT"
Range("AH2", ["AI2"]).Value = " "
Case Is = "TIME"
Range("AG2").Value = "TIME"
Range("AH2").Value = "6"
Range("AI2").Value = " "
Case Is = "TIMESTAMP"
Range("AG2").Value = "TIMESTAMP"
Range("AH2").Value = "26"
Range("AI2").Value = " "
Case Is = "STRING"
Range("AG2").Value = "CHAR"
Range("AH2").Value = " "
Range("AI2").Value = " "
End Select
ActiveCell.Offset(1, 0).Select
Loop Until IsEmpty(ActiveCell.Offset(0, 0))
End Sub
Bookmarks