![]() |
|
#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 |
|
|
Similar Threads
|
||||
| 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 |
Run-time error '424': Object required
|
zlodeh | Excel Programming | 1 | 02-24-2016 01:58 AM |
Run Time Error 424 - Object Required
|
Doug Needham | Excel Programming | 4 | 01-12-2015 10:54 PM |
vba error (object required) for highlight vowels
|
gsrikanth | Word VBA | 1 | 04-22-2012 08:55 PM |
vba error (object required) for highlight vowels
|
gsrikanth | Excel Programming | 1 | 04-18-2012 01:06 AM |