Livin404
Well-known Member
- Joined
- Jan 7, 2019
- Messages
- 743
- Office Version
- 365
- 2019
- Platform
- Windows
Greetings, I already have the basic VBA but I just need to fine tune it to pick up ANY letter except the Letter B.
The VBA I'm using is
However I need the wildcard the first letter. I tried using both "?V", and "*V". I am hoping to have this apply to any letter or number in the first position with the Exception of the letter B.
Thank you vey much indeed.
The VBA I'm using is
VBA Code:
Sub Depositioner()
Dim i As Long
For i = 1 To ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row
Select Case Left(ActiveSheet.Cells(i, 1).Value, 2)
Case "AV"
ActiveSheet.Range("G" & i).Value = ActiveSheet.Range("G" & i).Value & " DEPOSITIONER"
End Select
Next i
End Sub
However I need the wildcard the first letter. I tried using both "?V", and "*V". I am hoping to have this apply to any letter or number in the first position with the Exception of the letter B.
Thank you vey much indeed.