Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-13-2022, 02:18 AM
ericliu24 ericliu24 is offline Object required (Error 424) Windows 10 Object required (Error 424) Office 2019
Novice
Object required (Error 424)
 
Join Date: Mar 2022
Location: China
Posts: 21
ericliu24 is on a distinguished road
Default Object required (Error 424)

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
Reply With Quote
 

Thread Tools
Display Modes


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

Other Forums: Access Forums

All times are GMT -7. The time now is 09:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft