I crafted a quickie example to test what you wanted done.
Unfortunately I'm not sure how to fully go through all the steps you specified exactly, which would mean interacting with multiple dialog boxes, but I did get pretty close to creating the final product without going that route.
I created a simple Excel document, formatted to work with the method you specified. I only entered enough data to create 4 points, then saved it locally. I used the routine you mentioned, and it created the points and spline just fine.
Then I went to work simulating the creation of the same geometry that process created using iLogic code.
I was easily able to create the 3D sketch, and the visible 3D sketch points points within that sketch.
However, creating the spline from those points, kept throwing errors.
I tried creating a couple different types of splines, and tried using either the sketched points or the mathematical points, but never got a successful outcome.
Is seems like this should work, because it seems fairly simple.
Then at last I tried drawing connected 3D lines between the points, allowing them to bend and specifying a radius, and that worked well, so I'm not quite sure why the splines aren't being created.
There is probably some tiny detail I'm missing, that is causing the errors.
Or perhaps it's just not liking the point locations I'm using, even though I've changed them several times while testing.
This is iLogic code, for simplicity, instead of VBA, but here is my code so far.
Dim oPDoc As PartDocument = ThisApplication.ActiveDocument
Dim oPDef As PartComponentDefinition = oPDoc.ComponentDefinition
Dim oXLFile As String = "S:\Engineering\SHARED\Tests\Points To Import.xlsx"
Dim oSheet As String = "Sheet1"
GoExcel.Open(oXLFile, oSheet)
GoExcel.DisplayAlerts = False
GoExcel.TitleRow = 2
GoExcel.FindRowStart = 3
Dim oTG As TransientGeometry = ThisApplication.TransientGeometry
Dim oTO As TransientObjects = ThisApplication.TransientObjects
Dim oCoords(2) As Double
Dim oPoint As Point
Dim oSkPt3d As SketchPoint3D
Dim oPoints As ObjectCollection = oTO.CreateObjectCollection
Dim oSketch3d As Sketch3D = oPDef.Sketches3D.Add()
For i As Integer = 3 To 10
oCoords(0) = GoExcel.CellValue("A" & i)
oCoords(1) = GoExcel.CellValue("B" & i)
oCoords(2) = GoExcel.CellValue("C" & i)
oPoint = oTG.CreatePoint(oCoords(0),oCoords(1),oCoords(2))
oSkPt3d = oSketch3d.SketchPoints3D.Add(oPoint, True)
oPoints.Add(oSkPt3d)
Next
'System.Threading.Thread.Sleep(1000)
'Dim oSpline As SketchSpline3D = oSketch3d.SketchSplines3D.Add(oPoints,SplineFitMethodEnum.kSmoothSplineFit)
Dim oSpline As SketchControlPointSpline3D = oSketch3d.SketchControlPointSplines3D.Add(oPoints)
'Dim oLine1 As SketchLine3D = oSketch3d.SketchLines3D.AddByTwoPoints(oPoints(1), oPoints(2), True, (2.54))
'Dim oLine2 As SketchLine3D = oSketch3d.SketchLines3D.AddByTwoPoints(oPoints(2),oPoints(3),True,(2.54))
'Dim oLine3 As SketchLine3D = oSketch3d.SketchLines3D.AddByTwoPoints(oPoints(3),oPoints(4),True,(2.54))
I'm sure one of the others here on the forum will review this issue, see the problem, and fix it.
Wesley Crihfield

(Not an Autodesk Employee)