Calendar Macro Instructions

To use the Calendar Macro, you must first install it. The following steps work for FrontPage 2002 and FrontPage 2003. I have not tested this on FrontPage 2000, but it should work there as well.

Installing the Calendar Macro

1. Open FrontPage.

2. Choose Tools, Macros, Visual Basic Editor.

3. If necessary, display the Project Explorer shown below by pressing Ctrl+r.

4. Expand Modules.

5. Double-click Module 1. To open the Module code window.

6. Type the following code exactly as it appears here. This is case-sensitive so make sure you capitalize it correctly!!!

7. Choose File, Import and then locate and choose the CalendarForm.frm file that is in the web template's Calendar folder.

8. Choose File, Close and Return to FrontPage.

Using the Calendar Macro

1. Place your insertion point where you want the new calendar to display. The calendar can only be placed in a main content area. It is too large to fit into a news box.

2. Choose Tools, Macro, Macros to open the Macros dialog box. Under Macro Name, you should see Calendar providing you installed the macro correctly.

3. If necessary, select the Calendar macro and click Run.

4. Enter a Month (use the month number 1-12, not its name) and Year and click Submit. The new month will appear.

5. The calendar web page included with this template has a custom style sheet (calendar.css) that automatically customizes the calendar to match the template. The calendar uses these styles;

.calendar-table - the entire table.

.calendar-month - header cell containing the Month, Year.

.calendar-offday - cells that are not in the current month.

.calendar-day - cells for each day of the month.

.calendar-daynumber - paragraph containing the number for each day of the month.

.calendar-dayname - header cells containing days of the week.

6. To center the calendar on the page, right-click in the calendar and choose Table Properties. From the Alignment list, select Center, and then click OK.

5. To enter events, click in the blank space below the day number and start typing. You can also link events by right-clicking your text and choosing Hyperlinks.