'===================ABV PROJECT======================
'===================MODULE 1  =======================
Sub main ()
'you can edit this macro to execute any command when loading this workbook
'next line call the routine that fill the sheet
call absmain ()
End Sub

Sub absmain ()
'Do not edit this macro, changes will not be saved with the workbook!!!
Dim objchart  As Object
Dim objbutton As Object
Worksheets(1).Name = "test"
Worksheets(2).Name = "B"
Worksheets(3).Name = "C"
Worksheets(1).Activate
Columns("A").ColumnWidth = 1.714286
Columns("B").ColumnWidth = 24.714286
Columns("D").ColumnWidth = 5.428571
Columns("E").ColumnWidth = 5.428571
Columns("F").ColumnWidth = 5.428571
Columns("G").ColumnWidth = 5.428571
Columns("H").ColumnWidth = 5.428571
Columns("I").ColumnWidth = 5.428571
Columns("J").ColumnWidth = 6.571429
Columns("K").ColumnWidth = 5.428571
Columns("L").ColumnWidth = 5.428571
Columns("M").ColumnWidth = 5.428571
Columns("N").ColumnWidth = 6.571429
Columns("O").ColumnWidth = 6.571429
Columns("P").ColumnWidth = 5.428571
Rows("2").RowHeight = 46
Rows("3").RowHeight = 29
Cells(2,2).Formula="'Welcome !"
Cells(2,2).Font.Name = "Times"
Cells(2,2).Font.Size = 24
Cells(2,2).Font.Bold = True 
Cells(2,2).HorizontalAlignment = xlCenter
Cells(2,2).Font.ColorIndex = 14
Cells(3,2).Font.Name = "Times"
Cells(3,2).Font.Size = 24
Cells(3,2).Font.Bold = True 
Cells(3,2).HorizontalAlignment = xlCenter
Cells(5,2).Formula="'Function:"
Cells(5,2).Font.Name = "Courier"
Cells(5,2).Font.Size = 14
Cells(5,2).Font.Bold = True 
Cells(5,2).Font.Italic = True 
Cells(5,2).Font.ColorIndex = 20
Cells(5,3).Formula="'x ="
Cells(5,3).Borders(xlEdgeTop).LineStyle = xlLineStyleContinuous
Cells(5,3).Borders(xlEdgeLeft).LineStyle = xlLineStyleContinuous
Cells(5,3).Font.Bold = True 
Cells(5,3).Interior.ColorIndex = 27
Cells(5,3).Font.ColorIndex = 9
Cells(5,4).Formula="=+0"
Cells(5,4).Borders(xlEdgeTop).LineStyle = xlLineStyleContinuous
Cells(5,4).Interior.ColorIndex = 27
Cells(5,4).Font.ColorIndex = 17
Cells(5,4).NumberFormat = "0.00"
Cells(5,5).Formula="=+3.14/6+D5"
Cells(5,5).Borders(xlEdgeTop).LineStyle = xlLineStyleContinuous
Cells(5,5).Interior.ColorIndex = 27
Cells(5,5).Font.ColorIndex = 17
Cells(5,5).NumberFormat = "0.00"
Cells(5,6).Formula="=+3.14/6+E5"
Cells(5,6).Borders(xlEdgeTop).LineStyle = xlLineStyleContinuous
Cells(5,6).Interior.ColorIndex = 27
Cells(5,6).Font.ColorIndex = 17
Cells(5,6).NumberFormat = "0.00"
Cells(5,7).Formula="=+3.14/6+F5"
Cells(5,7).Borders(xlEdgeTop).LineStyle = xlLineStyleContinuous
Cells(5,7).Interior.ColorIndex = 27
Cells(5,7).Font.ColorIndex = 17
Cells(5,7).NumberFormat = "0.00"
Cells(5,8).Formula="=+3.14/6+G5"
Cells(5,8).Borders(xlEdgeTop).LineStyle = xlLineStyleContinuous
Cells(5,8).Interior.ColorIndex = 27
Cells(5,8).Font.ColorIndex = 17
Cells(5,8).NumberFormat = "0.00"
Cells(5,9).Formula="=+3.14/6+H5"
Cells(5,9).Borders(xlEdgeTop).LineStyle = xlLineStyleContinuous
Cells(5,9).Interior.ColorIndex = 27
Cells(5,9).Font.ColorIndex = 17
Cells(5,9).NumberFormat = "0.00"
Cells(5,10).Formula="=+3.14/6+I5"
Cells(5,10).Borders(xlEdgeTop).LineStyle = xlLineStyleContinuous
Cells(5,10).Interior.ColorIndex = 27
Cells(5,10).Font.ColorIndex = 17
Cells(5,10).NumberFormat = "0.00"
Cells(5,11).Formula="=+3.14/6+J5"
Cells(5,11).Borders(xlEdgeTop).LineStyle = xlLineStyleContinuous
Cells(5,11).Interior.ColorIndex = 27
Cells(5,11).Font.ColorIndex = 17
Cells(5,11).NumberFormat = "0.00"
Cells(5,12).Formula="=+3.14/6+K5"
Cells(5,12).Borders(xlEdgeTop).LineStyle = xlLineStyleContinuous
Cells(5,12).Interior.ColorIndex = 27
Cells(5,12).Font.ColorIndex = 17
Cells(5,12).NumberFormat = "0.00"
Cells(5,13).Formula="=+3.14/6+L5"
Cells(5,13).Borders(xlEdgeTop).LineStyle = xlLineStyleContinuous
Cells(5,13).Interior.ColorIndex = 27
Cells(5,13).Font.ColorIndex = 17
Cells(5,13).NumberFormat = "0.00"
Cells(5,14).Formula="=+3.14/6+M5"
Cells(5,14).Borders(xlEdgeTop).LineStyle = xlLineStyleContinuous
Cells(5,14).Interior.ColorIndex = 27
Cells(5,14).Font.ColorIndex = 17
Cells(5,14).NumberFormat = "0.00"
Cells(5,15).Formula="=+3.14/6+N5"
Cells(5,15).Borders(xlEdgeTop).LineStyle = xlLineStyleContinuous
Cells(5,15).Interior.ColorIndex = 27
Cells(5,15).Font.ColorIndex = 17
Cells(5,15).NumberFormat = "0.00"
Cells(5,16).Formula="=+3.14/6+O5"
Cells(5,16).Borders(xlEdgeTop).LineStyle = xlLineStyleContinuous
Cells(5,16).Borders(xlEdgeRight).LineStyle = xlLineStyleContinuous
Cells(5,16).Interior.ColorIndex = 27
Cells(5,16).Font.ColorIndex = 17
Cells(5,16).NumberFormat = "0.00"
Cells(6,3).Formula="'sin(x) ="
Cells(6,3).Borders(xlEdgeLeft).LineStyle = xlLineStyleContinuous
Cells(6,3).Font.Bold = True 
Cells(6,3).Interior.ColorIndex = 27
Cells(6,3).Font.ColorIndex = 9
Cells(6,4).Formula="=+sin(D$5)"
Cells(6,4).Interior.ColorIndex = 27
Cells(6,4).Font.ColorIndex = 17
Cells(6,4).NumberFormat = "0.00"
Cells(6,5).Formula="=+sin(E$5)"
Cells(6,5).Interior.ColorIndex = 27
Cells(6,5).Font.ColorIndex = 17
Cells(6,5).NumberFormat = "0.00"
Cells(6,6).Formula="=+sin(F$5)"
Cells(6,6).Interior.ColorIndex = 27
Cells(6,6).Font.ColorIndex = 17
Cells(6,6).NumberFormat = "0.00"
Cells(6,7).Formula="=+sin(G$5)"
Cells(6,7).Interior.ColorIndex = 27
Cells(6,7).Font.ColorIndex = 17
Cells(6,7).NumberFormat = "0.00"
Cells(6,8).Formula="=+sin(H$5)"
Cells(6,8).Interior.ColorIndex = 27
Cells(6,8).Font.ColorIndex = 17
Cells(6,8).NumberFormat = "0.00"
Cells(6,9).Formula="=+sin(I$5)"
Cells(6,9).Interior.ColorIndex = 27
Cells(6,9).Font.ColorIndex = 17
Cells(6,9).NumberFormat = "0.00"
Cells(6,10).Formula="=+sin(J$5)"
Cells(6,10).Interior.ColorIndex = 27
Cells(6,10).Font.ColorIndex = 17
Cells(6,10).NumberFormat = "0.00"
Cells(6,11).Formula="=+sin(K$5)"
Cells(6,11).Interior.ColorIndex = 27
Cells(6,11).Font.ColorIndex = 17
Cells(6,11).NumberFormat = "0.00"
Cells(6,12).Formula="=+sin(L$5)"
Cells(6,12).Interior.ColorIndex = 27
Cells(6,12).Font.ColorIndex = 17
Cells(6,12).NumberFormat = "0.00"
Cells(6,13).Formula="=+sin(M$5)"
Cells(6,13).Interior.ColorIndex = 27
Cells(6,13).Font.ColorIndex = 17
Cells(6,13).NumberFormat = "0.00"
Cells(6,14).Formula="=+sin(N$5)"
Cells(6,14).Interior.ColorIndex = 27
Cells(6,14).Font.ColorIndex = 17
Cells(6,14).NumberFormat = "0.00"
Cells(6,15).Formula="=+sin(O$5)"
Cells(6,15).Interior.ColorIndex = 27
Cells(6,15).Font.ColorIndex = 17
Cells(6,15).NumberFormat = "0.00"
Cells(6,16).Formula="=+sin(P$5)"
Cells(6,16).Borders(xlEdgeRight).LineStyle = xlLineStyleContinuous
Cells(6,16).Interior.ColorIndex = 27
Cells(6,16).Font.ColorIndex = 17
Cells(6,16).NumberFormat = "0.00"
Cells(7,3).Formula="'cos(x) ="
Cells(7,3).Borders(xlEdgeBottom).LineStyle = xlLineStyleContinuous
Cells(7,3).Borders(xlEdgeLeft).LineStyle = xlLineStyleContinuous
Cells(7,3).Font.Bold = True 
Cells(7,3).Interior.ColorIndex = 27
Cells(7,3).Font.ColorIndex = 9
Cells(7,4).Formula="=+cos(D$5)"
Cells(7,4).Borders(xlEdgeBottom).LineStyle = xlLineStyleContinuous
Cells(7,4).Interior.ColorIndex = 27
Cells(7,4).Font.ColorIndex = 17
Cells(7,4).NumberFormat = "0.00"
Cells(7,5).Formula="=+cos(E$5)"
Cells(7,5).Borders(xlEdgeBottom).LineStyle = xlLineStyleContinuous
Cells(7,5).Interior.ColorIndex = 27
Cells(7,5).Font.ColorIndex = 17
Cells(7,5).NumberFormat = "0.00"
Cells(7,6).Formula="=+cos(F$5)"
Cells(7,6).Borders(xlEdgeBottom).LineStyle = xlLineStyleContinuous
Cells(7,6).Interior.ColorIndex = 27
Cells(7,6).Font.ColorIndex = 17
Cells(7,6).NumberFormat = "0.00"
Cells(7,7).Formula="=+cos(G$5)"
Cells(7,7).Borders(xlEdgeBottom).LineStyle = xlLineStyleContinuous
Cells(7,7).Interior.ColorIndex = 27
Cells(7,7).Font.ColorIndex = 17
Cells(7,7).NumberFormat = "0.00"
Cells(7,8).Formula="=+cos(H$5)"
Cells(7,8).Borders(xlEdgeBottom).LineStyle = xlLineStyleContinuous
Cells(7,8).Interior.ColorIndex = 27
Cells(7,8).Font.ColorIndex = 17
Cells(7,8).NumberFormat = "0.00"
Cells(7,9).Formula="=+cos(I$5)"
Cells(7,9).Borders(xlEdgeBottom).LineStyle = xlLineStyleContinuous
Cells(7,9).Interior.ColorIndex = 27
Cells(7,9).Font.ColorIndex = 17
Cells(7,9).NumberFormat = "0.00"
Cells(7,10).Formula="=+cos(J$5)"
Cells(7,10).Borders(xlEdgeBottom).LineStyle = xlLineStyleContinuous
Cells(7,10).Interior.ColorIndex = 27
Cells(7,10).Font.ColorIndex = 17
Cells(7,10).NumberFormat = "0.00"
Cells(7,11).Formula="=+cos(K$5)"
Cells(7,11).Borders(xlEdgeBottom).LineStyle = xlLineStyleContinuous
Cells(7,11).Interior.ColorIndex = 27
Cells(7,11).Font.ColorIndex = 17
Cells(7,11).NumberFormat = "0.00"
Cells(7,12).Formula="=+cos(L$5)"
Cells(7,12).Borders(xlEdgeBottom).LineStyle = xlLineStyleContinuous
Cells(7,12).Interior.ColorIndex = 27
Cells(7,12).Font.ColorIndex = 17
Cells(7,12).NumberFormat = "0.00"
Cells(7,13).Formula="=+cos(M$5)"
Cells(7,13).Borders(xlEdgeBottom).LineStyle = xlLineStyleContinuous
Cells(7,13).Interior.ColorIndex = 27
Cells(7,13).Font.ColorIndex = 17
Cells(7,13).NumberFormat = "0.00"
Cells(7,14).Formula="=+cos(N$5)"
Cells(7,14).Borders(xlEdgeBottom).LineStyle = xlLineStyleContinuous
Cells(7,14).Interior.ColorIndex = 27
Cells(7,14).Font.ColorIndex = 17
Cells(7,14).NumberFormat = "0.00"
Cells(7,15).Formula="=+cos(O$5)"
Cells(7,15).Borders(xlEdgeBottom).LineStyle = xlLineStyleContinuous
Cells(7,15).Interior.ColorIndex = 27
Cells(7,15).Font.ColorIndex = 17
Cells(7,15).NumberFormat = "0.00"
Cells(7,16).Formula="=+cos(P$5)"
Cells(7,16).Borders(xlEdgeBottom).LineStyle = xlLineStyleContinuous
Cells(7,16).Borders(xlEdgeRight).LineStyle = xlLineStyleContinuous
Cells(7,16).Interior.ColorIndex = 27
Cells(7,16).Font.ColorIndex = 17
Cells(7,16).NumberFormat = "0.00"
Cells(10,2).Formula="'chart examples:"
Cells(10,2).Font.Name = "Courier"
Cells(10,2).Font.Size = 14
Cells(10,2).Font.Bold = True 
Cells(10,2).Font.Italic = True 
Cells(10,2).Font.ColorIndex = 20
Cells(13,2).Font.Name = "Courier"
Cells(13,2).Font.Size = 14
Cells(13,2).Font.Bold = True 
Cells(13,2).Font.Italic = True 
Cells(13,2).Font.ColorIndex = 20
Set objchart = ActiveWorksheet.ChartObjects.Add (211,200,522,263)
objchart.Activate
ActiveChart.ChartType = xlLine
ActiveChart.SeriesCollection.NewSerie
ActiveChart.SeriesCollection(1).XValues = Range("D5:P5")
ActiveChart.SeriesCollection(1).Name = "'sin (x)"
ActiveChart.SeriesCollection(1).Values = Range("D6:P6")
ActiveChart.SeriesCollection(2).Name = "'cos (x)"
ActiveChart.SeriesCollection(2).Values = Range("D7:P7")
ActiveChart.HasTitle = True
ActiveChart.ChartTitle.Text = "'title"
ActiveChart.Axes(xlCategory).HasTitle = True
ActiveChart.Axes(xlCategory).AxisTitle.Text = "'X axis"
ActiveChart.Axes(xlValue).HasMajorGridlines = True
ActiveChart.Axes(xlValue   ).HasTitle = True
ActiveChart.Axes(xlValue   ).AxisTitle.Text = "'Y axis"
ActiveSheet.Shapes.AddShape(msoShapeOval,20, 15,169,72)
Worksheets(2).Activate
Worksheets(3).Activate
Worksheets(1).Activate
End Sub
