![]() |
|
#14
|
||||
|
||||
|
I was actually able to do this myself, with a little assistance of recording a macro:
Dim MyText As String MyText = Selection.Text Selection.Style = ActiveDocument.Styles("MyStyle") Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, _ Text:="TC """ & MyText & """ \l 3 ", PreserveFormatting:=False Would you believe it actually works?! I guess I am on my way to becoming the world's biggest expert in Word macros. ![]() I have in the past actually written thousands of lines of code (Pascal, remember that?) but my meds have totally zapped my memory ![]() Thank You again! Susan Flamingo |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Perfect macro not working when its code is inserted in larger macro | RobiNew | Word VBA | 3 | 10-18-2023 03:19 AM |
| Macro to Remove Paras with Line Spac 6; Macro to Convert Paragraphs to Outline Numbered | venganewt | Word VBA | 0 | 01-25-2022 06:28 PM |
Footnote extraction macro [Why is this macro so slow? / anyway to make it faster?]
|
Le_Blanc | Word VBA | 10 | 03-22-2021 11:38 AM |
| Spell check macro within macro button field doesn't work in one document | samuelle | Word VBA | 0 | 07-20-2016 02:27 AM |
Macro Question: Need help making a macro to highlight the first word in every sentence
|
LadyAna | Word | 1 | 12-06-2014 10:39 PM |