Exel for civil engineer

Page 327

ActiveChart.ChartArea.Select

n = NJ + NM am = 1 'creating member lines For i = NJ + 1 To n With ActiveChart .SeriesCollection.NewSeries .SeriesCollection(i).XValues = mxVal(am) .SeriesCollection(i).Values = myVal(am) .SeriesCollection(i).Name = "=""""" End With ActiveChart.SeriesCollection(i).Select With Selection .MarkerBackgroundColorIndex = xlNone .MarkerForegroundColorIndex = xlNone .MarkerStyle = xlNone .Smooth = False End With With Selection.Border .ColorIndex = 5 .Weight = xlThin .LineStyle = xlContinuous End With am = am + 1 Next i

'creating member name tags am = 1 For i = n + 1 To n + NM With ActiveChart .SeriesCollection.NewSeries .SeriesCollection(i).XValues = tagxVal(am) .SeriesCollection(i).Values = tagyVal(am) .SeriesCollection(i).Name = "M" & am End With ActiveChart.PlotArea.Select

An Introduction to Excel for Civil Engineers

320


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.