Here is VBA Code.
If cmbhlevels.Value = "1" Then
ActiveDocument.AttachedTemplate.AutoTextEntries("z_TOC1").Insert Where _
:=Selection.Range, RichText:=True
End If
Please help me.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Abhilash J ARank #1,243 · 1.4K reputationPosted Jul 11, 2017, 3:10 AM EDT
chetan AllipurRank #2,527 · 554 reputationPosted Jul 11, 2017, 3:16 AM EDT