Results 1 to 3 of 3
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    VB code no longer works :o) (VB6.0)

    Hello

    I have the following VB code which closes the document without saving and doesn't prompt the user.

    'close doc
    objWordApp.ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges


    this code no longer works as now the prompt is appearing for the user and its interuppted the code.

    The only change is a DM Hummingbird upgrade which is no longer reliant on ODMA but is now COMS compliant.

    I wouldn't think that this would inpact on the above code but it obviously has.

    Ive applied other work arounds but without success.

    any idea

    many thanks diana :-)

  2. #2
    4 Star Lounger
    Join Date
    Dec 2003
    Location
    Zoetermeer, Zuid-Holland, Netherlands
    Posts
    559
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: VB code no longer works :o) (VB6.0)

    Maybe it helps to set the Saved flag first:

    'close doc
    objWordApp.ActiveDocument.Saved = True
    objWordApp.ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges

  3. #3
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: VB code no longer works :o) (VB6.0)

    Thank Jan

    that worked succesfully :-)

    diana

Posting Permissions

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