I have tried to format my MSHFlexGrid(flexDA)columns with the following code and it will not work. Does anyone know the proper way or tell me what I'm doing wrong??
Private Sub Form_Load()
With flexDA
.TextMatrix(0, 0) = "Part Number"
.TextMatrix(0, 1) = "Part Name"
.TextMatrix(0, 2) = "Hours"
.TextMatrix(0, 3) = "Part Price"
.TextMatrix(0, 4) = "Total"
.ColWidth(0) = 1200
.ColWidth(1) = 2500
.ColWidth(2) = 750
.ColWidth(3) = 1000
.ColWidth(4) = 1000
For i = 0 to .Rows - 1
.Col = 2
.Text = Format(.Text, "#,###.0"
.Col = 3
.Text = Format(.Text, "##,###,###.00"
Next i
End With Every day above ground is a GOOD DAY!!!
Private Sub Form_Load()
With flexDA
.TextMatrix(0, 0) = "Part Number"
.TextMatrix(0, 1) = "Part Name"
.TextMatrix(0, 2) = "Hours"
.TextMatrix(0, 3) = "Part Price"
.TextMatrix(0, 4) = "Total"
.ColWidth(0) = 1200
.ColWidth(1) = 2500
.ColWidth(2) = 750
.ColWidth(3) = 1000
.ColWidth(4) = 1000
For i = 0 to .Rows - 1
.Col = 2
.Text = Format(.Text, "#,###.0"
.Col = 3
.Text = Format(.Text, "##,###,###.00"
Next i
End With Every day above ground is a GOOD DAY!!!