Use the Split function.


VB Code:
  1. Private Sub Command1_Click()
  2.     Dim Coords As String
  3.     Dim vArray As Variant
  4.    
  5.     Coords = "1024,768"
  6.    
  7.     vArray = Split(Coords, ",")
  8.    
  9.     MsgBox vArray(0) & vbCrLf & vArray(1)
  10. End Sub