Results 1 to 5 of 5

Thread: I don't want re-save opened documents

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    24

    I don't want re-save opened documents

    After opening one .dot and launching text macro, when I want to close document, it asks for save or don't save document. I never don't want save it. What command I can write into for it? Ty.

    Sry for my English

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: I don't want re-save opened documents

    Can't you open via read only?
    Or set the read only on the .dot file?

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3
    Hyperactive Member pgag45's Avatar
    Join Date
    Mar 2007
    Location
    Colorado
    Posts
    262

    Re: I don't want re-save opened documents

    possibly

    application.displayalerts = false

    or depending on what close method you are using ...

    .Close SaveChanges:=False

    or a version of that may work...

  4. #4

    Thread Starter
    Junior Member
    Join Date
    May 2007
    Posts
    24

    Re: I don't want re-save opened documents

    OK. Thanks, I will test it.
    I have next question, what doing: Dim strDocEncoding As String?

  5. #5
    Hyperactive Member pgag45's Avatar
    Join Date
    Mar 2007
    Location
    Colorado
    Posts
    262

    Re: I don't want re-save opened documents

    Quote Originally Posted by jesy
    OK. Thanks, I will test it.
    I have next question, what doing: Dim strDocEncoding As String?

    What is that line doing?

    If that's your question, that line declares a variable named strDocEncoding as a String.

Posting Permissions

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



Click Here to Expand Forum to Full Width