|
-
Oct 11th, 2004, 02:36 AM
#1
Thread Starter
Frenzied Member
Stripping spaces from numbers
I've got a column of numbers.
Each number is 19 digits long, and there are NO leading zeros.
Unfortunately, these numbers have intermittent spaces in the middle of them which I need to strip out.
e.g. 292 393 67675363 98769
I tried using the INSTR function, but that was giving me some weird results.
This is pretty urgent, so any input would be greatly appreciated.
Cheers
Steve
-
Oct 11th, 2004, 03:03 AM
#2
Here is a snippet from the VB Forum:
VB Code:
Dim intRowMax As Integer, intRowIdx As Integer
intRowMax = ActiveSheet.UsedRange.Rows.Count
For intRowIdx = 1 To intRowMax
ActiveSheet.Range("A" & intRowIdx).Value = Replace(ActiveSheet.Range("A" & intRowIdx).Value, " ", "")
Next
Bruce.
-
Oct 11th, 2004, 03:22 AM
#3
Thread Starter
Frenzied Member
-
Oct 11th, 2004, 05:16 AM
#4
Getting an answer in less than a hour, but still complaining!
You're welcome to rate this post!
If your problem is solved, please use the Mark thread as resolved button
Wait, I'm too old to hurry!
-
Oct 11th, 2004, 09:20 AM
#5
Thread Starter
Frenzied Member
Originally posted by opus
Getting an answer in less than a hour, but still complaining!
I blame the wife ... I've been brainwashed !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|