![]() |
|
#1
|
|||
|
|||
|
Hi, I'm trying to do:
Code:
If Len(strValue) > 1 Then cc.Range.Text = strValue cc.Range.InsertParagraphBefore EndIf VBA throws a runtime error 4605 (Command not available) on the InsertParagraphBefore command Any ideas how to get this working? Thanks! Bart |
|
#2
|
||||
|
||||
|
Try something based on:
Code:
ActiveDocument.ContentControls(1).Range.Characters.First.Previous.InsertBefore vbCr
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#3
|
|||
|
|||
|
Excellent Paul, thank you very much!
Bart |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Content Control content deleted when re-uploading to SharePoint | Peterson | Word | 5 | 06-27-2018 08:13 PM |
One Content Control Checkbox checks another Content Control Checkbox
|
DEsh | Word VBA | 2 | 10-06-2017 08:23 PM |
Help with Content Control Box
|
dep7418 | Word | 2 | 12-18-2016 08:08 PM |
Clicking the selected Content Control checkbox returns wrong control in vba event
|
DougsGraphics | Word VBA | 2 | 06-24-2015 07:31 AM |
Deleting a table from a content control -- preserving the content control
|
BrainSlugs83 | Word Tables | 8 | 11-14-2013 03:06 AM |