实时错误怎么改?
代码如下:Dim objSurfer As Object
Set objSurfer = CreateObject("Surfer.Application") '创建surfer对象
objSurfer.Visible = False 'surfer软件本身不在前台显示
'For j1 = 1 To 8
outgridfile = "\Users\Administrator\Desktop\dzybxt3\chulisk\chazhi\201312310.grd"
'objSurfer.GridData DataFile:="C:\Users\Administrator\Desktop\dzybxt3\chulisk\fjdata\22131231 & (j1 - 1) * 3 & .txt", DupMethod:=srfDupNone, ShowReport:=True, xCol:=2, yCol:=3, zCol:=4, xMin:=109#, xMax:=115#, yMin:=34#, yMax:=41#, Algorithm:=srfKriging, OutGrid:=outgridfile, NumCols:=61, NumRows:=71, outfmt:=srfGridFmtAscii
objSurfer.GridData DataFile:="C:\Users\Administrator\Desktop\dzybxt3\chulisk\fjdata\201312310.txt", DupMethod:=srfDupNone, ShowReport:=True, xCol:=2, yCol:=3, zCol:=4, xMin:=109#, xMax:=115#, yMin:=34#, yMax:=41#, Algorithm:=srfKriging, OutGrid:=outgridfile, NumCols:=61, NumRows:=71, outfmt:=srfGridFmtAscii
'用Kriging法将资料内插到网格点上,并确定网格点的最大(小)经纬度。outgrid为数据插值之后输出的文件名。
'Next j1
MsgBox "插值完成"
之前用注释部分显示工作表数据不足,后来感觉可能是文件名有问题,就直接用了,可是还是有错误:
实时错误“-2147352567(80020009)参数15必须〉=1且<=12”,这是怎么回事啊?