PDA

View Full Version : Calendar Control Not Working using VBA Code



vilasc
11-28-2016, 05:05 AM
Dear All,

I am trying to automate the downloading process from website (attached with this post) using vba macro but it due to calendar control not able to automate the same. Please help.

Thanks in advance

SamT
11-28-2016, 01:30 PM
Are you talking about the IE objects
.document.all("MainContent_imgbtncalender")
OR
.document.parentwindow.execscript "__doPostBack('ctl00$MainContent$CALnavdate','6145')"
?

vilasc
11-28-2016, 10:56 PM
Are you talking about the IE objects
.document.all("MainContent_imgbtncalender")
OR
.document.parentwindow.execscript "__doPostBack('ctl00$MainContent$CALnavdate','6145')"
?

Thanks for reply :)

right its work in debug mode but stepping mode its throw error 80020101

SamT
11-29-2016, 03:38 PM
???

Are you talking about the IE objects
.document.all("MainContent_imgbtncalender")
OR
.document.parentwindow.execscript "__doPostBack('ctl00$MainContent$CALnavdate','6145')"



Yes or no.

vilasc
11-29-2016, 10:48 PM
???

Are you talking about the IE objects
.document.all("MainContent_imgbtncalender")
OR
.document.parentwindow.execscript "__doPostBack('ctl00$MainContent$CALnavdate','6145')"



Yes or no.

Yes. for

.document.parentwindow.execscript "__doPostBack('ctl00$MainContent$CALnavdate','6145')"

syntex