This project has moved and is read-only. For the latest updates, please go here.

Mail Merge propagate Label...I want to update all the labels

Jan 11, 2012 at 12:17 PM

Hi All,

I have a label template, I want to update all the labels when I click on some button. Previously it was possible with MailMergePropagateLabel function.

If m_currentDoc.MailMerge.MainDocumentType = Word.wdMailMergeMainDocType.wdMailingLables Then
m_currentDoc.Application.WordBasic.MailMergePropagateLabel()
End if

I am getting this error:

m_currentDoc.Application.WordBasic.message = "Specified cast is not valid.".

Thanks in advance
Sunny