Open and Edit a Dotm File

1,437

Launch Word 2011 first, then choose File --> Open and navigate to your *.dotm file:

Screenshot of Word 2011's Open dialog

The default will be to open the template itself, rather than to create a copy, though there's a drop-down menu on the open dialog, should you decide (I wouldn't) to switch it.

Share:
1,437

Related videos on Youtube

UndeadAlien
Author by

UndeadAlien

Updated on September 18, 2022

Comments

  • UndeadAlien
    UndeadAlien over 1 year

    My program is the Mario pyramids. I can't seem to get the Input Validation in C down. If someone could explain input validation and what seems to be going wrong. Thanks. Here is a copy of my code.

    // Prompt user till input is 0-23
    do
    {
        printf("Welcome to Mario Pyramid Builder! Enter a number from 0 - 23: ");
        scanf("%d", &height);
        if(height >= 0 && height <= 23)
        {
            break;
        }
        else
        {
            printf("Wrong Input! Try Again.");
            continue;
        }
    }
    while ((height < 0) || (height > 23));
    
    • Xandy
      Xandy over 11 years
      I've never used Mac, but when working with templates in Windows there's an option to edit the template in the right click menu instead of creating a new document based on it. Maybe there's such an option in Mac too.
    • Dodinas
      Dodinas over 11 years
      Thanks, this helped me figure it out. On a Mac, you have to open Word, go to "File" -> "Open", then make sure the dropdown say "Open Original." Thanks again.
    • tadman
      tadman about 6 years
      Instead of 1980s style interactive input, why not use argv?
    • user3386109
      user3386109 about 6 years
      scanf returns the number of successful conversions, which should be 1 in your case. If the return value is not 1, the user entered garbage, and you need to read all the characters up to the newline, and try again. Also, since the loop will break when the input is valid, you don't need the do/while. A simple while(1) is all that's needed.
    • Antti Haapala -- Слава Україні
      Antti Haapala -- Слава Україні about 6 years
      @tadman CS50...
    • tadman
      tadman about 6 years
      @AnttiHaapala Maybe they should update it to use conventions from this century.
  • yano
    yano about 6 years
    also strtol and friends, which have better error checking than atoi
  • UndeadAlien
    UndeadAlien about 6 years
    In the If statement when you say != 1. Can I do something like this? Also when I run this it rejects valid information. != (height >= 0 && height <= 24))
  • AndersK
    AndersK about 6 years
    @ConnorHutch i left out the details in the original answer, i edited the answer now to be more clear. hth
  • chqrlie
    chqrlie about 6 years
    Good answer, but you could restart the fgets() in case of non integer input.
  • AndersK
    AndersK about 6 years
    @chqrlie oops typo, thanks for pointing that out. regarding the restart, i was thinking this runs within his while loop so a continue would do if wrong.