excel - Columns for a chart in VBA -
i have problem in vba , need help. have macro creates number of tabs data , plots in each of them. in end of code want add chart take columns dataset of each of tab. instance chart trying requires columns b:e , column i.
the code below brings error in range. else have tried creates chart succesfully buy takes column f,g,h not desirable. can me on that??
at second level ask how can choose columns plot defining title of column (in first cell of each column)
thank in advance
range("b1:e1", "i1:i").select range(selection, selection.end(xldown)).select activesheet.shapes.addchart.select activechart.charttype = xlline activechart.seriescollection(1).select 'activechart.seriescollection(1).axisgroup = 2 ' puts secondary axis residuals 'activechart.seriescollection(1).charttype = xlcolumnclustered activesheet.shapes(3).scalewidth 1.362962963, msofalse, msoscalefromtopleft activesheet.shapes(3).incrementtop 150 activesheet.shapes(3).incrementleft -600
Comments
Post a Comment