Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 05-08-2012, 01:55 AM
macropod's Avatar
macropod macropod is offline VBA code for adding slash (/) Windows 7 64bit VBA code for adding slash (/) Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,383
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
 

Tags
macro, vba, vba word



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA code for adding slash (/) Where does my code go? rbaldwin Word VBA 3 03-14-2012 02:31 PM
VBA code for adding slash (/) vbc code rajpeter Excel Programming 2 09-13-2011 02:29 PM
Word07-Bid Tab Code ddw23 Word VBA 0 07-28-2011 01:07 PM
VBA code for adding slash (/) Adding Image into a excel cell and adding a hyperlink to the image saravananiyyanar Excel 3 05-04-2011 08:31 AM
A slash shows up before bookmarks Hunter Word 0 03-07-2010 05:57 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft