• Empty User Defined Contact field with vba (OL 2007)

    Home » Forums » AskWoody support » Productivity software by function » MS Outlook and email programs » Empty User Defined Contact field with vba (OL 2007)

    Author
    Topic
    #481184

    I have some vba code running in outlook 2007. This code successfully writes a series of contact fields out to a nominated excel spreadsheet. the code snippet that does this for a user defined field is:

    Set rng = wks.Cells(i, j)
    If itm.UserProperties(“ChequeNo”) “” Then
    rng.Value = itm.UserProperties(“ChequeNo”)
    End If
    j = j + 1

    What I want to be able to do after writing the current value out to excel, is to empty the field in outlook. I have tried all sorts of code within the if…endif block, but cannot get it to work. You will gather that I am very much beginner. Can anyone help please

    Mike Ch

    Reply To: Empty User Defined Contact field with vba (OL 2007)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: