Dim objXl As Object, tb As Table
Set objXl = CreateObject("Excel.Application")
objXl.Workbooks.Add
objXl .Visible = True
For Each tb In Documents(1).Tables
tb.Select
Selection.Copy
objXl.ActiveSheet.Paste
objXl.Workbooks(1).Worksheets.Add.Activate
Next
PagMargin = Selection.Cells(1).Range.Information(wdVerticalPositionRelativeToPage)
Selection.MoveDown
If (Selection.Information(wdWithInTable)) Then
Do While (Selection.Cells(1).Range.Information(wdVerticalPositionRelativeToPage) = PagMargin)
Selection.MoveDown
Loop
Selection.StartOf Unit:=wdCell, Extend:=wdMove
Selection.EndOf Unit:=wdCell, Extend:=wdExtend
End If
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 54