How to wait for webpage to fully load before proceeding script?
问题 How do you wait for a webpage to fully load before proceeding the script? I know you can use delay 4 if you would want it to wait 4 seconds but this is not safe enough. In VBA you have a simple code that always works and it goes like this: Dim x As String x = "https://na6.salesforce.com/p/attach/NoteAttach?pid=" & Range("T34").Value & "&parentname=" & Range("T35").Value & "&retURL=%2F0018000000sKz8K%3Fpb0%3Dtrue" Set IE = CreateObject("InternetExplorer.Application") IE.Navigate (x) IE.Visible