Sub MoverCboes(dbg as MSHFlexGrid, cboes as ComboBox)
Dim n As Long
If dbg.Rows > 23 Then
cboes.Move dbg.CellLeft + dbg.Left, dbg.CellTop + dbg.Top, dbg.CellWidth - 300
Else
cboes.Move dbg.CellLeft + dbg.Left, dbg.CellTop + dbg.Top, dbg.CellWidth
End If
If dbg.TextMatrix(dbg.Row, 3) = "" Then
n = 0
Else
n = Val(dbg.TextMatrix(dbg.Row, 3)) + 1
End If
cboes.Visible = True
cboes.ListIndex = n
cboes.SetFocus
End Sub