bobkap
Active Member
- Joined
- Nov 22, 2009
- Messages
- 313
- Office Version
- 365
- Platform
- Windows
- Mobile
- Web
I have a column of different 3-digit numbers that are preceded by the "#" sign. I want to remove just the # sign. I've listed the code below that I am using. Every time I run it, it does remove the # sign, BUT it also replaces the 3-digit number with some single digit arbitrary number that does not contain any of the same digits as the original number. Staring at this for over an hour now does not seem to fix the problem. Any help would be greatly appreciate.
bk4 = Application.match("Item #", Range("1:1"), 0)
finalrow = Cells(Rows.Count, 1).End(xlUp).Row
For counter5 = finalrow To 2 Step -1
Cells(finalrow, bk4) = Left(finalrow, 1)
finalrow = finalrow - 1
Next counter5
VBA Code:
finalrow = Cells(Rows.Count, 1).End(xlUp).Row
For counter5 = finalrow To 2 Step -1
Cells(finalrow, bk4) = Left(finalrow, 1)
finalrow = finalrow - 1
Next counter5
VBA Code: