Im really not sure if this is what you are looking for so I apologize if I am wasting your time. Sub MyMacro()ĭim search_strings(1 To 2, 1 to 2) As String That is just an idea I had, it could be way off. In the Find what: text box, type the text or word you want to replace. Press Ctrl+H shortcut to display the Find and Replace dialog. Steps to Find and Replace in Word Launch the Word Document where you want to find and replace text. Then you can loop through to get the replacement values. For a more detailed tutorial with pictures, let’s break it down in steps. This may be completely off and I may look like a fool but have you tried using a two dimensional array so you can store the values with their replacements in the two dimensional array. Reply = MsgBox("Replace '" & & "'?", vbYesNoCancel) ' Loop through each match in the documentĭo While (this_search_string) ' Define the search range to be the whole document ' Run a search for each string in the array of strings to matchįor Each this_search_string In search_strings (Currently, I get this error: Compile error: User-defined type not defined.) #MICROSOFT WORD FIND AND REPLACE ON MAC MAC OS#I've tried using a dictionary, like this: Dim dict As New Scripting.Dictionaryīut for that to work, I need to reference Microsoft Scripting Runtime, which isn't available on Mac OS X. I know that I need some sort of key/value pair. #MICROSOFT WORD FIND AND REPLACE ON MAC HOW TO#But I can't figure out how to store and reference the corresponding replacement text. I can loop through this array with a For Each loop. You first must locate the Find/Search box in the upper right hand corner of the Word window: Once you have located the Search box Select the drop-down arrow and select Replace This will open up the Find and Replace side panel. #MICROSOFT WORD FIND AND REPLACE ON MAC FOR MAC#I've created an array to store the strings to match: Dim search_strings(1 To 2) As String The Replace command in Microsoft Word for Mac 2016 is a little difficult to find. #MICROSOFT WORD FIND AND REPLACE ON MAC SERIES#
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |