O
Osiris
I have a table of 1 row and 2 columns
in each of the two cells, I want to put a 7x7 table.
How would I do that ?
Here is what I thought (but it doesnot work: the class structure is
baffling):
With ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary)
Set FooterTable = .Range.Tables.Add(Range:=.Range, NumRows:=1,
NumColumns:=2, _
DefaultTableBehavior:=wdWord9TableBehavior,
AutoFitBehavior:=wdAutoFitWindow)
For i = 1 To 2
With FooterTable
Set MonthTable = .Tables.Add(Range:=.Range.Cell(1, i),
NumRows:=7, NumColumns:=7)
MonthTable.Rows.First.Cells.Merge
MonthTable.Cell(1, 1).Range.Text = "october"
For j =10 To76
MonthTable.Cell(2, j).Range.Text = "day"
Next
End With
Next
' alignment instellen
End With
in each of the two cells, I want to put a 7x7 table.
How would I do that ?
Here is what I thought (but it doesnot work: the class structure is
baffling):
With ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary)
Set FooterTable = .Range.Tables.Add(Range:=.Range, NumRows:=1,
NumColumns:=2, _
DefaultTableBehavior:=wdWord9TableBehavior,
AutoFitBehavior:=wdAutoFitWindow)
For i = 1 To 2
With FooterTable
Set MonthTable = .Tables.Add(Range:=.Range.Cell(1, i),
NumRows:=7, NumColumns:=7)
MonthTable.Rows.First.Cells.Merge
MonthTable.Cell(1, 1).Range.Text = "october"
For j =10 To76
MonthTable.Cell(2, j).Range.Text = "day"
Next
End With
Next
' alignment instellen
End With