我有进入 Intranet 的 Excel 代码:
sub TESTE()
Dim Data As Date
Dim ie As Object
Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = True
URL = "(URL address)"
ie.navigate (URL)
Data = Date - 1
ie.document.getElementById("ctl31_ctl04_ctl03_ddDropDownButton").Click ' Calendario
ie.document.getElementById("ctl31_ctl04_ctl03_txtValue").Value = Format(Data, "dd/mm/yyyy") ' Data
ie.document.getElementById("ctl31_ctl04_ctl00").Click ' Exibir Relatório
URL = "(URL address)"
ie.navigate (URL)
End Sub
但是,在代码的最后一行中,导出不会在所选日期之前发生,它总是考虑今天。我可以做些什么来使出口考虑一个选定的日期?