Results 1 to 4 of 4

Thread: Save vs BackgroundSave

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    VBAX Mentor XL-Dennis's Avatar
    Joined
    May 2004
    Location
    ?stersund, Sweden
    Posts
    499
    Location
    Hi Gerry,

    Thanks for the information and what I conclude is that the following example is the best one to go with:

    Option Explicit
    
    Sub test()
        Dim wdDoc As Document
        Dim bStatus As Boolean
        Set wdDoc = ActiveDocument
        With Options
            bStatus = .BackgroundSave
            .BackgroundSave = False
            wdDoc.Save
            .BackgroundSave = bStatus
        End With
    End Sub
    Kind regards,
    Dennis
    Last edited by Aussiebear; 02-21-2025 at 11:33 AM.
    Kind regards,
    Dennis

    ExcelKB | .NET & Excel | 2nd edition PED


Posting Permissions

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