New 2003 Install & Macros

A

Andy Whitney

There were some changes in the calendar macro from 2000 to 2003. The day
dates are centered instead of left justified and there are no lines between
the dates.

It is simple to add these things each time, but I thought I would write a
macro that selects all the days, then left justifies followed by 'Borders
and Shading->Grid' to restore it to the 2000 version.

I get the macro started up to the recording phase but nothing will record,
the tape icon is present and the mouse works but clicking will not select
the dates.

What am I doing wrong here?

TIA
 
D

Doug Robbins - Word MVP

There are many mouse actions that cannot be recorded using the macro
recorder. It should however be possible to create the necessary commands
directly in the Visual Basic Editor.

The following may do what you want:

Dim acell As Cell
Dim arow As Row
Dim aborder As Border
With ActiveDocument.Tables(1)
For Each arow In .Rows
For Each acell In arow.Cells
acell.VerticalAlignment = wdCellAlignVerticalCenter
acell.Range.Paragraphs.Alignment = wdAlignParagraphLeft
Next acell
Next arow
For Each aborder In .Borders
aborder.Visible = True
Next aborder
End With



--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
C

Charles Kenyon

Consider creating and applying a paragraph style. Applying can be done with
a macro or a replace action.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide




--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
Top