Sub Main Dim SurferApp As Object Set SurferApp = CreateObject("Surfer.Application") SurferApp.Visible = True Dim Plot As Object Set Plot = SurferApp.Documents.Add On Error GoTo X SurferApp.GridData (DataFile:="c:\temp\ElevationData.xls", xCol:=2, yCol:=3, zCol:=3, OutGrid:="C:\temp\test.grd") X: Err.Clear Dim MapFrame As Object Set MapFrame = Plot.Shapes.AddContourMap(GridFileName:="C:\temp\ElevationGrid.grd") Plot.SaveAs(FileName:="C:\temp\Elevation.srf") End Sub