Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Owner2229
in reply to: masureb

Like this:

 

Dim oDoc As Document = ThisApplication.ActiveDocument
Dim oParams As UserParameters = oDoc.Parameters.UserParameters

Dim TestParam As UserParameter = oParams.Item("TestParam")
TestParam.Expression = "NewText"
TestParam.Name = "NewName" TestParam.Delete()
Consider using "Accept as Solution" / "Kudos" if you find this helpful.
- - - - - - - - - - - - - - -
Regards,
Mike

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods