L
LEU
I tried to record a macro that would draw a table at a set location in a
document. But when I click on the record macro button the draw table option
goes away. I have the following macro that lets me draw a shape at a set
location in my document. How would I do the same for a table?
Sub Signoff1()
Dim idx As Integer
Dim oFFline As Shape
Dim i
On Error GoTo endthis
i = Selection.Information(wdVerticalPositionRelativeToPage)
Set oFFline = ActiveDocument.Shapes.AddLine(554, i + 12, 524, i + 12).Line
With oFFline.Line
.Weight = 0.75
End With
oFFline.Name = "hline" & idx
idx = idx + 1
endthis:
End Sub
document. But when I click on the record macro button the draw table option
goes away. I have the following macro that lets me draw a shape at a set
location in my document. How would I do the same for a table?
Sub Signoff1()
Dim idx As Integer
Dim oFFline As Shape
Dim i
On Error GoTo endthis
i = Selection.Information(wdVerticalPositionRelativeToPage)
Set oFFline = ActiveDocument.Shapes.AddLine(554, i + 12, 524, i + 12).Line
With oFFline.Line
.Weight = 0.75
End With
oFFline.Name = "hline" & idx
idx = idx + 1
endthis:
End Sub