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 8867921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:09:03+00:00 2026-06-14T17:09:03+00:00

I have a Microsoft Word 2010 Template file with several FormFields on it. There

  • 0

I have a Microsoft Word 2010 Template file with several FormFields on it. There are three at the top for Project Name, Project Location, and Project Number. I intend to intercept the FileSave built-in macro and concatenate the values of the three fields mentioned above to suggest a file name in the save-as dialog. My code consists of:

Sub FileSave()

    With Dialogs(wdDialogFileSaveAs)
        .Name = ThisDocument.FormFields("ProjectNumber").Result & _
                ThisDocument.FormFields("ProjectName").Result & _
                ThisDocument.FormFields("ProjectLocation").Result
        .Show
    End With

End Sub

When I fill out the three fields and press ctrl+s, the save-as dialog indeed appears, but the filename is blank. Upon further investigation in the Immediate window, I can refer to these fields, but their Result property always return an empty string. Thus the filename in the dialog appears blank. I can refer to the boolean properties, the Type property, etc. and display that in a MsgBox via the Immediate window, I just can’t get it to return anything for Result. Does anyone have an idea of why this might be?

  • 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-14T17:09:03+00:00Added an answer on June 14, 2026 at 5:09 pm

    So it looks like the answer to this question ended up being this: I was still working inside a template document, and not a macro-enabled document. For templates, during a macro’s run-time, the fields on the document do not contain values. In order for macros to be able to use values entered into FormFields, it has to be a document and not a template. Hope this helps anyone in search of this question being answered.

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

Sidebar

Related Questions

I have a Microsoft-Word File which contains several DocVariables. In our application we fill/replace
I have Microsoft Word template that I automated filling it's fields from my application,
I have a xml file which I need to open with Microsoft Word 2007.
I have made an addin for Microsoft Word 2010 Beta using Visual Studio 2010
I have used the demo here. All works well. http://code.msdn.microsoft.com/Word-2010-Using-the-Drag-81bb5bff However, when I try
I have seen in a few cases that converting a file from Microsoft Word
I have a .dotm template file on a network share. There are macros with
Currently we have thousands of Microsoft Word files, Excel files, PDF's, images etc stored
I have the requirement that I need to open a document in Microsoft word
I have quite big document in html format that generated from Microsoft Word. It

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.