ok,
I have a file I am reading in and need to convert the string by keeping data to the left of the character without the space.
here is the campaignValue string = "house - content"
Dim newcamp As String
Dim newcamp1 As Integer
newcamp1 = InStr(campaignValue, "-")
If newcamp1 > 0 Then
newcamp = InStr(campaignValue, newcamp1)
Else
newcamp = campaignValue
End If
this returns the right "- content" but I need the left "house"
any ideas?? helping others is rewarding!!