Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8344739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:27:50+00:00 2026-06-09T06:27:50+00:00

I have a Word 2010 macro that updates fields in the document when it

  • 0

I have a Word 2010 macro that updates fields in the document when it is opened – LASTSAVEDBY, FILENAME and DATESAVED. This is the macro recommended by Microsoft in their knowledgebase article The FILENAME field does not automatically update when you open a document in Word

That works great, however when the document is opened and later closed, it always prompts to save changes, whether changes have been made or not.

Is there any code I can add to the macro that immediately marks the document as not edited, so that the prompt to save only appears when further edits are made?

Otherwise, every time someone reads a document, they will probably end up saving it with their details rather than the person who really last edited it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T06:27:52+00:00Added an answer on June 9, 2026 at 6:27 am

    Use the Document.Saved Property. For example in VBA: ActiveDocument.saved = true

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Microsoft Word template that I automated filling it's fields from my application,
I have a macro that I developed in Word 2010. How do I send
I have a word document that was saved as xml. now I need to
I have a VBA Word Macro that gets words from .txt list and color
I have made an addin for Microsoft Word 2010 Beta using Visual Studio 2010
I want to have a MS Word 2010 document where there is a checkbox
I have created an office addin for Word 2010 targeting .net 4 and this
I have a word document that uses a nonstandard font. It's not embedded but
I have this Word 2010 Office project in VS2010 Can someone point me to
I have a word template (msword 2010) that I inject variables into using PHPWord

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.