写给live.com日历

时间:2015-07-08 17:55:34

标签: html excel-vba calendar vba excel

我想将excel电子表格中的日历条目写入我的live.com日历。

我正在使用VBA并且基本上已成功,我可以写开始日期和结束日期,我可以添加说明,一切都很好。

但是我无法弄清楚如何编写开始和结束时间。如果我把时间写入.text,它基本上被忽略了。如果我查看正在写入的页面,数据输入框将消失,时间将显示为文本但会被忽略。

有人可以帮忙吗?

' GoToPage takes me to the right web paage and logs me in if necessary and sets HTMLDoc up.

GoToPage("calendar.live.com/calendar/calendar.aspx?rru=addevent")


HTMLdoc.all.Item("__livecal_id2").Value = Str(fromdate)

HTMLdoc.all.Item("ns10_startTime").Text = "16:00:00" ' doesn't do what I expect

HTMLdoc.all.Item("ns10_durationSelect").Value = "Custom"

HTMLdoc.all.Item("__livecal_id3").Value = Str(todate)

HTMLdoc.all.Item("ns10_endTime").Text = "10:00:00"

HTMLdoc.all.Item("ns10_whatField").Value = who

HTMLdoc.all.Item("ns10_saveButton").Click

0 个答案:

没有答案
相关问题