Hi


I want to format the ComboBox text which placing over the FlexGrid

The result will show in FG2 cell in .Col 18 like that

dataincellxdataincellxdataincellxdataincellxdataincell

Where x is separates the cell data

If there is no data in any cell's then we want to make sure there is'nt tow xx behaind each other

VB Code:
  1. Private Sub Command1_Click()
  2.  
  3. With FG2
  4.  
  5. .Col = 18
  6. .Text = Combo6.Text & "x" & Combo7.Text & "x" & Combo9.Text & "x" & Combo10.Text & "x" & _
  7. Combo14.Text & "x" & Combo15.Text & "x" & Combo17.Text & "x" & Combo18.Text & "x" & _
  8. Combo23.Text & "x" & Combo24.Text & "x" & Combo26.Text & "x" & Combo27.Text & "x" & _
  9. Combo31.Text & "x" & Combo32.Text & "x" & Combo34.Text & "x" & Combo35.Text
  10. FG2.Text = Replace(FG2.Text, "xx", "x") ' If there is more then 2 xx it want work
  11.  
  12. ' Also if i enter the data in any combo then i press the command
  13. ' then i clear the data and press the command it want work
  14. End With
  15.  
  16. End Sub

What i miss