#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
Assuming this is all for VBA -
1. You could use a wildcard Find/Replace, where: Code:
.Text = " ([0-9]@:)" .Replacement.Text = "\1" Code:
.Text = "(?)([\\/\?])" .Replacement.Text = "\2\1" Code:
.Text = "[" & ChrW("&HXXXX") & "-" & ChrW("&HYYYY") & "]"
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
dear friend
thanks for your help just question, if i need to change : by - make it @- thanks |
#4
|
||||
|
||||
In that case you could use:
@\-
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
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 |
#6
|
||||
|
||||
You could use a wildcard Find/Replace, where:
Find = ([0-9]) : Replace = \1:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Editing text in text boxes--please help--driving me crazy! | Samantha Jean | Word | 7 | 02-09-2017 02:22 AM |
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 | amberroad | Word | 6 | 03-20-2011 04:38 AM |
Need help on Macro 03- Find text - if text is blank then remove line | simpleonline1234 | Word VBA | 1 | 02-25-2011 02:28 AM |