show label dialog box

K

kurt

Hi,

I would like to create a macro that displays the
envelope/label dialog box, but on the label tab. (I have
created a custom envelope macro, and therefore don't need
the Word envelope feature.) Any help on the macro
language to show the label dialog box?

THANKS!
Kurt
 
J

Joost Verdaasdonk

-----Original Message-----
Hi,

I would like to create a macro that displays the
envelope/label dialog box, but on the label tab. (I have
created a custom envelope macro, and therefore don't need
the Word envelope feature.) Any help on the macro
language to show the label dialog box?

THANKS!
Kurt
.

Hi Kurt,

Try This:

Option Explicit

Sub LabelIt()
Dim strHi As String
strHi = "Hi Kurt"

With ActiveDocument

With Dialogs(wdDialogToolsCreateLabels)
.AddrText = strHi
.Show
End With

End With

End Sub

Enjoy,
Joost Verdaasdonk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top