Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-11-2014, 03:49 AM
romanticbiro romanticbiro is offline editing text and remove spaces Windows 7 32bit editing text and remove spaces Office 2003
Advanced Beginner
editing text and remove spaces
 
Join Date: Feb 2014
Posts: 42
romanticbiro is on a distinguished road
Default editing text and remove spaces

hello sirs



i usually do this rooteen wish find way to make it by code,

1- remove space before deget if it followed by collen.
2- change slash or question-mark after character to equal-sign before it.
3- in english when need to make range for letters we use a-z A-Z , how i do this range for nun latten languages
thanks
Reply With Quote
  #2  
Old 03-13-2014, 09:46 PM
macropod's Avatar
macropod macropod is offline editing text and remove spaces Windows 7 32bit editing text and remove spaces Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Assuming this is all for VBA -
1. You could use a wildcard Find/Replace, where:
Code:
.Text = " ([0-9]@:)"
.Replacement.Text = "\1"
2. You could use a wildcard Find/Replace, where:
Code:
.Text = "(?)([\\/\?])"
.Replacement.Text = "\2\1"
3. You could use a wildcard Find, where:
Code:
.Text = "[" & ChrW("&HXXXX") & "-" & ChrW("&HYYYY") & "]"
and the XXXX and YYYY are the Unicode value of the characters at each end of the range. You can see what these are via Insert|Symbol.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 03-14-2014, 05:59 AM
romanticbiro romanticbiro is offline editing text and remove spaces Windows 7 32bit editing text and remove spaces Office 2003
Advanced Beginner
editing text and remove spaces
 
Join Date: Feb 2014
Posts: 42
romanticbiro is on a distinguished road
Default

dear friend
thanks for your help
just question, if i need to change : by - make it @-
thanks
Reply With Quote
  #4  
Old 03-14-2014, 10:58 AM
macropod's Avatar
macropod macropod is offline editing text and remove spaces Windows 7 32bit editing text and remove spaces Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

In that case you could use:
@\-
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 07-04-2014, 07:31 PM
romanticbiro romanticbiro is offline editing text and remove spaces Windows 7 32bit editing text and remove spaces Office 2003
Advanced Beginner
editing text and remove spaces
 
Join Date: Feb 2014
Posts: 42
romanticbiro is on a distinguished road
Default

hello dear

if i need to remove space if it was between degit and collen like "10 :" like it "10:"
i tried this code:
find: "([0-9] @"
replace: "([0-9]@"

kindly advice me.

thanks
Reply With Quote
  #6  
Old 07-04-2014, 07:42 PM
macropod's Avatar
macropod macropod is offline editing text and remove spaces Windows 7 32bit editing text and remove spaces Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

You could use a wildcard Find/Replace, where:
Find = ([0-9]) :
Replace = \1:
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
editing text and remove spaces Editing text in text boxes--please help--driving me crazy! Samantha Jean Word 7 02-09-2017 02:22 AM
editing text and remove spaces One click check box with text editing sephiroth2906 Word 3 01-11-2012 10:21 AM
Word-Help with removing unwanted spaces in text greshoff Word 9 12-30-2011 03:24 PM
editing text and remove spaces Editing Text amberroad Word 6 03-20-2011 04:38 AM
editing text and remove spaces Need help on Macro 03- Find text - if text is blank then remove line simpleonline1234 Word VBA 1 02-25-2011 02:28 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:49 PM.


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