![]() |
#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 |
![]() |
|
![]() |
||||
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 |
![]() |
DEsh | Word VBA | 2 | 10-06-2017 08:23 PM |
![]() |
dep7418 | Word | 2 | 12-18-2016 08:08 PM |
![]() |
DougsGraphics | Word VBA | 2 | 06-24-2015 07:31 AM |
![]() |
BrainSlugs83 | Word Tables | 8 | 11-14-2013 03:06 AM |