Open and Edit a Dotm File
1,437
Launch Word 2011 first, then choose File --> Open and navigate to your *.dotm file:
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.
Related videos on Youtube
Author by
UndeadAlien
Updated on September 18, 2022Comments
-
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 over 11 yearsI'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 over 11 yearsThanks, 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 about 6 yearsInstead of 1980s style interactive input, why not use
argv
? -
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 willbreak
when the input is valid, you don't need thedo/while
. A simplewhile(1)
is all that's needed. -
Antti Haapala -- Слава Україні about 6 years@tadman CS50...
-
tadman about 6 years@AnttiHaapala Maybe they should update it to use conventions from this century.
-
-
yano about 6 yearsalso
strtol
and friends, which have better error checking thanatoi
-
UndeadAlien about 6 yearsIn 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 about 6 years@ConnorHutch i left out the details in the original answer, i edited the answer now to be more clear. hth
-
chqrlie about 6 yearsGood answer, but you could restart the
fgets()
in case of non integer input. -
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.