Notes Button Changing the Mail server in Location document

Create a button in notes client & send it to users  to change the server name in the location document

Sub Click(Source As Button)

Dim db As New NotesDatabase(””,”names.nsf”)

Dim view As NotesView

Dim doc As NotesDocument

Dim doc1 As NotesDocument

Dim doc2 As NotesDocument

Dim doc3 As NotesDocument

Dim doc4 As NotesDocument

Set view = db.GetView(”Locations”)

Set doc = view.GetDocumentByKey(”Office”)

Messagebox “Your client will be set to use the Old Server server.”,64,”Change required”

Call doc.ReplaceItemValue(”MailServer”,”CN=New Server/O=???“)


Messagebox “Your Lotus Notes Client is now configured to use New Server as your Home Server.”,64,”Changes complete”

End Sub


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s