Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-07-2021, 01:11 AM
luciusrdv luciusrdv is offline Apply Bold Formatting to a long list of word Macro Windows 10 Apply Bold Formatting to a long list of word Macro Office 2010
Novice
Apply Bold Formatting to a long list of word Macro
 
Join Date: May 2021
Posts: 1
luciusrdv is on a distinguished road
Default Apply Bold Formatting to a long list of word Macro

Hello,

I'm very new to VBA and after searching for a few days, I decided to ask for help here.



I created a macro that researches and replaces specific words in the whole document.

I wish to simplify the code because it's way too long (probably about + 100 different words) and the same code is duplicated for each word.

I don't know if it's possible, please find attached a simplified version of my macro.

Many thanks in advance and have a nice day.

Luciusrdv
Attached Files
File Type: txt macro_allergenes.txt (1.5 KB, 0 views)
Reply With Quote
  #2  
Old 05-07-2021, 02:05 PM
macropod's Avatar
macropod macropod is offline Apply Bold Formatting to a long list of word Macro Windows 10 Apply Bold Formatting to a long list of word Macro Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,213
macropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant futuremacropod has a brilliant future
Default

See, for example: https://www.msofficeforums.com/55215-post6.html & https://www.msofficeforums.com/147418-post3.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apply Bold Formatting to a long list of word Macro Apply Picture formatting to all pictures in the word file si14 Drawing and Graphics 13 07-28-2018 03:31 AM
Apply Bold Formatting to a long list of word Macro The Logic Behind Apply Formatting of Surrounding Text in Reveal Formatting Pane Instructor Mark Word 4 04-06-2016 01:32 PM
VBA Word Table - Select More than 1 Column at a time - Apply Formatting jc491 Word VBA 12 09-24-2015 06:03 AM
Apply Bold Formatting to a long list of word Macro How to apply a list style to multiple Word documents? MrSnrub Word 4 06-19-2013 07:32 AM
Apply Bold Formatting to a long list of word Macro Adding a long list of values to a combobox in Word 2003? ll4u76 Word VBA 1 04-13-2012 03:37 AM

Other Forums: Access Forums - Senior Forums

All times are GMT -7. The time now is 07:09 PM.


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