Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Jan 2001
    Location
    New Zealand
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Word 2k Print Dialog

    I have an app where I need to display the print dialog box but with the 'print range' set to 'selection'.
    My code looks like this...

    Dim dlg As Dialog
    Set dlg = Application.Dialogs(wdDialogFilePrint)
    dlg Range:=wdPrintSelection

    This last line generates a complie error (Invalid use of property). I've had no luck finding a solution to this.

    Any ideas?

    TIA,
    Kevin

  2. #2
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word 2k Print Dialog

    Change the last line to:
    dlg.Range = wdPrintSelection
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  3. #3
    New Lounger
    Join Date
    Jan 2001
    Location
    New Zealand
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word 2k Print Dialog

    Thanks Geoff,
    I was sure I'd already tried that, must have been := rather than just = DOH!

    Cheers,
    Kevin

Posting Permissions

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