Results 1 to 3 of 3
  1. #1
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Persistence Pays Off Again - Read all about it

    <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Cat=&Board=vb&Number=42164&page=0& view=collapsed&sb=5&vc=1#Post42164>This post</A> has been solved. Here's the code that does it. I just tried every dialog argument that looked even remotely close to what I was looking for and found it in .EnvPaperName:

    <pre>Sub ToolsEnvelopesAndLabels()
    Dim dlg As Dialog
    Set dlg = Dialogs(wdDialogToolsCreateEnvelope)
    With dlg
    .EnvOmitReturn = True
    .ExtractAddress = True
    .UseEnvFeeder = True
    .EnvPaperName = "Automatically Select"
    Select Case .Display
    Case 1 'Print
    .Execute
    Case 0 'Cancel or Close
    End Select
    End With

    Set dlg = Nothing
    End Sub
    </pre>

    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

  2. #2
    JustCallMeAl
    Guest

    Re: Persistence Pays Off Again - Read all about it

    EnvPaperName? I wouldn't have given that a second thought!

  3. #3
    Gold Lounger
    Join Date
    Dec 2000
    Location
    Hollywood (sorta), California, USA
    Posts
    2,759
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Persistence Pays Off Again - Read all about it

    I've whined about this before: the VB folks will list the arguements for the dialogs, but not document a word about them. Try finding anything on that one at MSDN.
    Kevin <IMG SRC=http://www.wopr.com/w3tuserpics/Kevin_sig.gif alt="Keep the change, ya filthy animal...">
    <img src=/w3timages/blackline.gif width=33% height=2><img src=/w3timages/redline.gif width=33% height=2><img src=/w3timages/blackline.gif width=33% height=2>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •