View Single Post
 
Old 05-08-2012, 01:55 AM
macropod's Avatar
macropod macropod is online now Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,384
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Jasa,

I have moved the post to the Word vba forum. It is easy enough to make sure only one slash gets inserted, but you still haven't answered the basic question:
Quote:
What is the logic that the code would use to determine where to put the slash if you've left it out?
Until you answer that, no solution is possible. For example, with your first string:
S01=02^t45.01.39.05x245.201.939.905.01.45.39.05.37 .73/01.30.66.00.28.64x74.45.5.10
how does the code know it should be that and not:
S01=02^t45.01.39.05x245.201.939.905.01.45.39.05.37 .730/1.30.66.00.28.64x74.45.5.10
or:
S01=02^t45.01.39.05x245.201.939.905.01.45.39.05.37 .7/301.30.66.00.28.64x74.45.5.10
or even something else, such as:
S01=02^t45.01.39.05x245.201.93/9.905.01.45.39.05.37 .7301.30.66.00.28.64x74.45.5.10
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote