Resizing date cells in a Word calendar

Running Word 2007 on a Windows 7 platform.  I have a Word-based calendar, and need to re-size the dimensions for all dates.  Dragging the vertical edge of a given date will resize other dates in the same column of that month, but not the other months.  Dragging a horizontal edge of a given date will resize other dates in the same row of that month, but not other months.  Is there a way to re-size every day of the year simply?2018.doc
ddantesAsked:
Who is Participating?
 
GrahamSkanRetiredCommented:
You could run a VBA macro like this. Note that the wanted dimensions have been hard coded. You will need to edit to them to get your choice of values.
Sub Resize()
Dim tbl As Table
Dim rw As Row
Dim cl As Cell

Dim r As Integer
Dim snRowHeight As Single
Dim snColWidth As Single

snRowHeight = CentimetersToPoints(3) 'Centimetres is my default measurement unit
snColWidth = CentimetersToPoints(3) ' but InchesToPoints() is possible
            

For Each tbl In ActiveDocument.Tables
    For r = 1 To tbl.Rows.Count
        If r = 1 Then
            tbl.Rows(r).Cells(1).Width = 7 * snColWidth
        Else
            For Each cl In tbl.Rows(r).Cells
                cl.Width = snColWidth
            Next cl
            If r > 2 Then
                tbl.Rows(r).Height = snRowHeight
            End If
                
        End If
    Next r
Next tbl
End Sub

Open in new window

0
 
ddantesAuthor Commented:
Thank you!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.