Hello!
Can anyone tell me the proper VBA syntax for the following example?
Code
Sub Insert_Character()
Select Case Len(ActiveCell)
Case Is = 3
ActiveCell.Value = [First 2 Characters] & "X" & [Last Character]
Case Is = 4
ActiveCell.Value = [First Character] & "X" & [Last 3 Characters]
End Select
End Sub
In other words: If the character count is 3, I would like to place an "X" between the 2nd and 3rd character.
If the character count is 4, I would like to place an "X" between the 1st and 2nd character.
Any help will be sincerely appreciated.
I know I'll feel like an idiot when I read the answer, but my brain just won't work today.:confused: