Thursday, October 23, 2008

Macro in-class assignment #1

In a new file named mymacro, create a macro named after yourself (e.g. BarackO).
Do not use a keyboard shortcut.

In the horizontal centre of the page, the macro, using the Courier New font at size 14 points, enters two lines of text:
- Your full name
- Period G
On a third line it uses the Insert menu to begin entering two more lines:
- today’s date in the format October 23, 2008
- the current time in the format 9:32:28 AM
It enters a blank line.
It finishes by switching back to Normal Style.

Run the macro to show its results on the page.
Below that on the same page, print the macro code from Sub to End sub (in Normal font).