![]() |
#1
|
|||
|
|||
![]()
Trying to write a sub to reset all content controls to its original status, I met the error 424 on the code : ct1.Range.Text = ""
Could you please help me out, many thanks. the complete code as below: Sub ResetCC() Dim ctl As ContentControl Dim String1 As String For Each ctl In ActiveDocument.ContentControls If ctl.Type = wdContentControlRichText Then ct1.Range.Text = "" End If Next End Sub |
#2
|
||||
|
||||
![]()
ctl is different to ct1
The lowercase letter L is not the same as the numeral 1
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
|||
|
|||
![]()
thanks a ton. You have sharp eyesight.
|
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
I have Error at File System Object: Cant find object or lib | johndrew | Word VBA | 3 | 07-05-2018 08:46 PM |
![]() |
zlodeh | Excel Programming | 1 | 02-24-2016 01:58 AM |
![]() |
Doug Needham | Excel Programming | 4 | 01-12-2015 10:54 PM |
![]() |
gsrikanth | Word VBA | 1 | 04-22-2012 08:55 PM |
![]() |
gsrikanth | Excel Programming | 1 | 04-18-2012 01:06 AM |