Автор работы: Пользователь скрыл имя, 18 Февраля 2011 в 21:21, лабораторная работа
Работа с макросами
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlThin
End With
With Selection.Borders(
.LineStyle = xlContinuous
.ColorIndex = xlAutomatic
.TintAndShade = 0
.Weight = xlThin
End With
ActiveCell.Range("A8").Select
ActiveCell.FormulaR1C1 = "Итого"
ActiveCell.Range("A1:B1").
ActiveWindow.SmallScroll Down:=-3
ActiveCell.Offset(-7, 0).Range("A1:G8").Select
ActiveSheet.ListObjects.Add(
"Таблица3"
ActiveCell.Range("A1:G8").
ActiveSheet.ListObjects("
ActiveCell.Columns("A:A").
ActiveCell.Offset(0,
1).Columns("A:A").
ActiveCell.Offset(0,
2).Columns("A:A").
ActiveCell.Offset(0,
3).Columns("A:A").
ActiveCell.Offset(0,
4).Columns("A:A").
ActiveCell.Offset(0,
5).Columns("A:A").
ActiveCell.Offset(0,
6).Columns("A:A").
ActiveCell.Offset(8, 0).Range("A1").Select
End Sub
Используемая литература: