删除管道“ |”从csv文件中的列之一,并使用python3写入相同的csv文件

时间:2019-09-23 18:44:16

标签: python-3.x

运行下面的代码时,出现以下错误消息:

Sub login() Application.DisplayAlerts = False Dim url As String url = UserForm.Path2.Value Dim ie As Object Set ie = CreateObject("InternetExplorer.Application") With ie 'Open IE .navigate url ieBusy ie .Visible = False ie.navigate "https://mylink.com/ReporttypeID=1" 'Currently navigate to this set link 'Need IF statement to say if onclick = 1 then go to above link, else if it = 2 then go to the below link 'ie.navigate "https://mylink.com/ReporttypeID=2" ieBusy ie End With 'End IE actions Application.DisplayAlerts = True End Sub

代码在这里:

IndexError: list index out of range

任何反馈都会有很大帮助。非常感谢。

0 个答案:

没有答案