Du müsstest auf die Variable "strCell" dynamisch die Excel-Zelle schreiben.
Dim strCell
Dim strValue
Dim lngKommaFound
'Von Links bis zum ersten Komma
strCell = "810/81/114 088 2, - 05.05.2006, 1024-06-0000-06275"
lngKommaFound = InStr(1, strCell, ",")
strValue = Mid(strCell, 1, lngKommaFound - 1)
MsgBox strValue
'Von Links bis zum letzten Komma
strCell = "810/81/114 088 2, - 05.05.2006, 1024-06-0000-06275"
lngKommaFound = DV_InStrRight(strCell, ",")
strValue = Mid(strCell, 1, lngKommaFound - 1)
MsgBox strValue
'Von Rechts bis zum ersten Komma
strCell = "810/81/114 088 2, - 05.05.2006, 1024-06-0000-06275"
lngKommaFound = DV_InStrRight(strCell, ",")
strValue = Mid(strCell, lngKommaFound + 1)
MsgBox strValue
'Von Rechts bis zum letzten Komma
strCell = "810/81/114 088 2, - 05.05.2006, 1024-06-0000-06275"
lngKommaFound = DV_InStrRight(strCell, ",")
strValue = Mid(strCell, 1, lngKommaFound - 1)
MsgBox strValue
'Von Links dem ersten Komma bis Rechts dem ersten Komma
Dim lngKommaFoundLinks
Dim lngKommaFoundRechts
strCell = "810/81/114 088 2, - 05.05.2006, 1024-06-0000-06275"
lngKommaFoundLinks = InStr(1, strCell, ",")
lngKommaFoundRechts = DV_InStrRight(strCell, ",")
strValue = Mid(strCell, 1, lngKommaFoundRechts - 1)
strValue = Mid(strValue, lngKommaFoundLinks + 1)
MsgBox strValue
Private Function DV_InStrRight(strQuelle, strSuche)
Dim intPos
If Not (IsNull(strQuelle) Or IsNull(strSuche)) Then
intPos = InStr(strQuelle, strSuche)
Do While intPos > 0
DV_InStrRight = intPos
intPos = InStr(intPos + 1, strQuelle, strSuche)
Loop
End If
End Function