Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I want to delete all my alerts in the document using a macro. Any ideas? I know how to get the alert list (getAlertList array), but then there is no SetAlertList or removeAll items in the AlertsList or something like this. Thanks!
Hi,
The following code will remove all Alerts in a document.
Sub DeleteAlerts
set docprop = ActiveDocument.GetProperties
set alertList = docprop.Alerts
For i = 0 to alertList.Count - 1
alertList.RemoveAt(0)
Next
ActiveDocument.SetProperties docprop
End Sub
I hope this helps.
Thanks
Nick
Thanks a lot Nick! it works perfectly.
Cheers