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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:33:59+00:00 2026-05-11T18:33:59+00:00

I have a problem moving a Word template from Word 2003 to Word 2007

  • 0

I have a problem moving a Word template from Word 2003 to Word 2007

The code which I need to convert is

Sub Standardbrev()

    Documents.Add Template:= _
        "p:\setup\stdbrev.DOT", NewTemplate:= _
        False

    mask "<Navn>", False
    mask "<Adresse>", False
    mask "<Postby>", False
    mask "<att>", True
    mask "<Jura Nr>", False
    mask "<Vedr>", False
    mask "<Jurist>", False
End Sub

Edit, problems:
When I try to copy/paste the code to a dotx document I get a compile error saying:

Sub or Function not defined.

If I outcomment the maskpart I can run the macro and it opens the stdbrev.DOT file in a new window

Edit: What it do in 2003:
When you run the macro a 7 boxes (1 for each mask) pop up where you can fill info into them. The info the replaces the mask fields in the document

Hope this explains my problem

Edit: I found the solution, I misunderstood some of the code and did not know that mask was a function written by someone else a long time ago. Sorry for posting this noobish question

  • 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-05-11T18:33:59+00:00Added an answer on May 11, 2026 at 6:33 pm

    mask is not a built-in function. This function should be defined somewhere in a module and you also have to copy this function to the Word 2007 document (That is why you get the error “Sub or Function not defined.”). You can see where this function is defined by right-clicking on mask and then selecting Definition.

    However, the easiest way to “migrate” this would be to simply open your Word 2003 document in Office 2007 and then save it as either .dotm or .docm file (depending whether you want to create a template or a regular document).

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

Sidebar

Related Questions

i have a problem moving a XMLDataprovider Binding with XPath from Xaml to code
I have problem creating new instance of excel 2007 using VBA (from Access 2002).
I have a problem. I ma moving a system from one server to another
i'm moving from windows form to wpf but now i have a problem. i
I have a problem with my code where agents moving around suddenly disappear. This
We have a common problem of moving our development SQL 2005 database onto shared
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I have a problem with jQuery moving Burt Reynolds face around on the page.
I'm having a bit of a problem with moving specific data from one server
We have a Windows Service which runs on 2003 Server. It opens a source

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.