Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Sun, 22 Feb 2009 06:04:01 -0800, facmanboss
wrote: Ron, Thanks but I had already tried that Do Loop. I tried yours just to make sure. Same behavoir. Doesn't work. Here is an example: "….2..A….4." becomes "….2.A….4." Only the TWO periods Between "2" and "A" get replaced. No other combo does. OK, I'm pretty sure I understand what is going on. The issue is that there are NOT two *periods* prior to the "2" or between the "A" and the "4". What you are seeing is an ellipsis -- (ASCII code 133) plus a period. It may look like 3 periods (4 all together), but it is only 2 characters: ASCII code 133 followed by a "." Also, I still don't get the InStr behavoir in one of my examples below. Any more help appreciated. I'm at a deadend. Thanks. I suspect the same problem with your interpretation of your InStr behavior. The ellipsis may look like three periods, but it is only one and will not be recognized by code that is looking for a "period". You should be able to make appropriate changes now. --ron |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Problem using the INSTR function in VBA | Excel Programming | |||
Manipulating Data Problem | Excel Worksheet Functions | |||
Manipulating Strings | Excel Programming | |||
PivotTable and PivotCharts Problem - Manipulating in VBA | Excel Programming | |||
Instr function problem | Excel Programming |