-
WSriduwanz
AskWoody LoungerI used Firefox for this thread.
-
WSriduwanz
AskWoody LoungerThanks Andrew.
Maybe I should re-look into Table Autoformatting.
At the current moment, I found using VBA for shading easier, as the table size (number of rows and columns) on the documents are more or less fixed, ie. hardly any addition to the size. Apart from the shading, I also did formatting to the cells contents paragraph, which undeniably can be done with Table Autoformatting too. But yes, I will definitely re-look into Table Autoformatting.
Thank you once again. This forum has been super-resourceful.
PS. I did put down the version of Word I am using (Word 2003), but I guess my subject matter was too long, that the version was pushed out the box.
Regards
Rid -
WSriduwanz
AskWoody LoungerThanks for the suggestion Hans.
It is a bit too much for a newbie like me, but will continue trying. For now, I will only use the multiple entries in the worksheet.
Thank you again,
-
WSriduwanz
AskWoody LoungerBy changing the .Matchcase from False to True, those matching words but not matching case are not replaced anymore. But is it possible to have the best of both world? With single entry of “abc” in A1 and “def” in B1, all “ABC”, “abc”, “Abc” are replaced with “DEF”, “def”, “Def” respectively. In order words, I do not want to enter additional “ABC” in A2, “DEF” in B2; “Abc” in A3, “Def” in B3, and so on.
Cheers
Rid -
WSriduwanz
AskWoody LoungerMaybe I am asking too much, but is it possible to maintain the original “case” (uppercase, lowercase, title case, etc) of the word without inserting all the possible combination in the worksheet? For example, with one single entry of word “abc” in A1 and “def” in B1, all the occurances of “abc”, “ABC”, “Abc” are replaced with “def”, “DEF”, “Def”, respectively.
Thank you.
-
WSriduwanz
AskWoody LoungerIt works wonder Hans. Thank you so much.
Asking for your kindness further, how do I go about in modifying the codes so that:
1. Search all the texts in the current Word document based on the list of words in column A of Sheet 1
2. Replace the matching word in the Word document with corresponding cell B value (ie. if there is a text that matches cell A1 value, replace the text with cell B1 value), and highlight the replaced words.Thank you again in advance. Really appreaciate all the helps.
Rid
-
WSriduwanz
AskWoody LoungerSpot on.
Hans has kindly provided some codes. I am testing them out now.
Thank you all.
-
WSriduwanz
AskWoody LoungerGenius…genius….
Thank you so much…..I have managed to solve it.
Thank you.
-
WSriduwanz
AskWoody LoungerThank you so much Hans.
At last I am getting somewhere but not there yet.
I guess I did not make myself clear enough.
The final objective of the code is to let user highlight alternate rows with selected pattern Style and Color.
I am this far.
——————————
Dim dlgshadingborders As Dialog
Dim lastRow As Long
Dim i As Integer
Dim lngColor As LongSet dlgshadingborders = Dialogs(wdDialogFormatBordersAndShading)
With dlgshadingborders
.DefaultTab = wdDialogFormatBordersAndShadingTabShading
.Display
lngColor = .BackgroundRGB
End With
MsgBox lngColor
lastRow = Selection.Information(wdMaximumNumberOfRows)
If lastRow <= 3 Then
MsgBox "No need for shading"
Exit Sub
End If
For i = 3 To lastRow
Selection.Tables(1).Rows(i).Select
With Selection.Tables(1).Rows(i).Shading
.Texture = wdTexture10Percent
.ForegroundPatternColor = lngColor
End With
i = i + 1
Next i
———————–
How can I shade the row with selected Texture style instead of fixing it to wdTexture10Percent ?Thank you so much in advance.
Regards
Rid -
WSriduwanz
AskWoody LoungerEdited by Bigaldoc to add URL code.[/i] See the Quick Guide or 1-Click TagPanel.[/size]
Try http://www.elcomsoft.com/%5B/url%5D
Ciao.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
7 minutes ago -
Apple releases 18.5
by
Susan Bradley
26 minutes ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
1 hour, 33 minutes ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
2 hours, 10 minutes ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
9 hours, 7 minutes ago -
No HP software folders
by
fpefpe
9 hours, 51 minutes ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
2 hours, 4 minutes ago -
Stay connected anywhere
by
Peter Deegan
15 hours, 14 minutes ago -
Copilot, under the table
by
Will Fastie
6 hours, 27 minutes ago -
The Windows experience
by
Will Fastie
21 hours, 28 minutes ago -
A tale of two operating systems
by
Susan Bradley
12 hours, 25 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
1 day, 2 hours ago -
Where’s the cache today?
by
Up2you2
1 day, 18 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
1 day, 10 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
11 hours, 14 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
1 day, 18 hours ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
2 days, 11 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
2 days, 11 hours ago -
regarding april update and may update
by
heybengbeng
2 days, 12 hours ago -
MS Passkey
by
pmruzicka
1 day, 14 hours ago -
Can’t make Opera my default browser
by
bmeacham
2 days, 20 hours ago -
*Some settings are managed by your organization
by
rlowe44
2 days, 7 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
2 days, 19 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
3 days, 15 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
4 days ago -
AI slop
by
Susan Bradley
1 day, 18 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
4 days, 1 hour ago -
Two blank icons
by
CR2
1 day, 9 hours ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 11 hours ago -
End of 10
by
Alex5723
4 days, 13 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.