Sub Macro18()
'
' Macro18 Macro
'
'
Range("A2:A20").Select '<----the "A2:A#" # VALUE NEEDS TO BE UPDATED as per use of this macro
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.DataSeries Rowcol:=xlColumns, Type:=xlLinear, Date:=xlDay, _
Step:=1, Trend:=False
ActiveSheet.Outline.ShowLevels RowLevels:=2
Application.Goto Reference:="RANGE1"
Selection.DataSeries Rowcol:=xlColumns, Type:=xlLinear, Date:=xlDay, _
Step:=0.1, Trend:=False
Application.Goto Reference:="RANGE2"
Selection.DataSeries Rowcol:=xlColumns, Type:=xlLinear, Date:=xlDay, _
Step:=0.1, Trend:=False
Application.Goto Reference:="RANGE3"
Selection.DataSeries Rowcol:=xlColumns, Type:=xlLinear, Date:=xlDay, _
Step:=0.1, Trend:=False
End Sub
Right now it can't be any better. The only editing I have to do from here is make more: Range4,5,6,etc.... and copy whats in bold and update the selection Line at the top unless someone can shorten that code
------------------------code formatting issue only below--------------
RANGE3,RANGE4,RANGE5 WON'T WORK. It only works off the 1st range, RANGE 3. Hmmmmm
Bookmarks