Here's a littel code to get you started. If you have your import macro call this GenerateGraphs after the data is imported this should make a single graph with x-axis data from column C and y-axis data from columns B and D.
Try recording a macro while manipulating the graph properties to see what commands are used for changing each.
HTH
Sub GenerateGraphs()
Dim numRows As Double, FirstRow As Integer
FirstRow = 1 'Change this to the row where your data starts
numRows = ActiveSheet.Cells(Rows.Count, "C").End(xlUp).Row
Charts.Add
ActiveChart.ChartType = xlXYScatter
ActiveChart.SetSourceData Source:=Sheets("Sheet1").Range("B" & FirstRow & ":D" & numRows), PlotBy _
:=xlColumns
ActiveChart.SeriesCollection(1).XValues = "=Sheet1!R" & FirstRow & "C3:R" & numRows & "C3"
ActiveChart.SeriesCollection(1).Values = "=Sheet1!R" & FirstRow & "C4:R" & numRows & "C4"
ActiveChart.SeriesCollection(2).XValues = "=Sheet1!R" & FirstRow & "C3:R" & numRows & "C3"
ActiveChart.SeriesCollection(2).Values = "=Sheet1!R" & FirstRow & "C2:R" & numRows & "C2"
ActiveChart.Location Where:=xlLocationAsObject, Name:="Sheet1"
With ActiveChart
.HasTitle = False
.Axes(xlCategory, xlPrimary).HasTitle = False
.Axes(xlValue, xlPrimary).HasTitle = False
End With
End Sub
Bookmarks