回復 1#t8o2m0
試試看:
宣告函數:
Dim post As Object, elem As Object
將:
.all("toTimeTable")(toTimeTable).Selected = True
改為:
Set post = .getElementById("toTimeTable")
For Each elem In post.getElementsByTagName("option")
If elem.Value = toTimeTable Then elem.Selected = True: Exit For
Next elem作者: t8o2m0 時間: 2020-2-17 21:00