A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Replace Wa(end of cell) with WA(end of cell) in table (Word 2000)



 
 
Thread Tools Display Modes
  #1  
Old January 3rd, 2010, 01:44 AM posted to microsoft.public.word.tables
MathKing
external usenet poster
 
Posts: 2
Default Replace Wa(end of cell) with WA(end of cell) in table (Word 2000)

I want to find and replace Wa(end of cell mark) with WA(end of cell mark) in
a table. I can't find the end of cell mark as a special character to use in
the find and replace command in Word 2000. I have other such tasks to
perform. Can someone help me, please?
  #2  
Old January 3rd, 2010, 05:00 AM posted to microsoft.public.word.tables
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default Replace Wa(end of cell) with WA(end of cell) in table (Word 2000)

You may need to use a macro. The following code will do it for all of the
cells in the table in which the selection is located

Dim i As Long, j As Long
Dim rng As Range
With Selection.Tables(1)
For i = 1 To .Rows.Count
For j = 1 To .Columns.Count
Set rng = .Cell(i, j).Range
rng.End = rng.End - 1
If Right(rng.Text, 2) = "Wa" Then
rng.Text = Left(rng.Text, Len(rng.Text) - 2) & "WA"
End If
Next j
Next i
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"MathKing" wrote in message
...
I want to find and replace Wa(end of cell mark) with WA(end of cell mark)
in
a table. I can't find the end of cell mark as a special character to use
in
the find and replace command in Word 2000. I have other such tasks to
perform. Can someone help me, please?


  #3  
Old January 3rd, 2010, 05:51 AM posted to microsoft.public.word.tables
macropod[_2_]
external usenet poster
 
Posts: 2,402
Default Replace Wa(end of cell) with WA(end of cell) in table (Word 2000)

Hi MathKing,

Find: Wa^10
Replace: WA^10

with 'use wildcards'. Do note that this will also change 'Wa' immediately preceding paragraph marks elsewhere in the document if the
Find/Replace isn't limited to the table (eg by selecting the table).

--
Cheers
macropod
[Microsoft MVP - Word]


"MathKing" wrote in message ...
I want to find and replace Wa(end of cell mark) with WA(end of cell mark) in
a table. I can't find the end of cell mark as a special character to use in
the find and replace command in Word 2000. I have other such tasks to
perform. Can someone help me, please?


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.