Hello all, I am trying to create a timer that will allow me to be on my web scrape for a certain time and then logoff, close out internet explorer and then log back on and pick up where I left off. I have a function that will log me off, a function to log me back in and a function to create internet explorer. I started a timer however after it reaches the time and goes through my process the timer() keeps the time and does not start over when I log back on. How can i get my timer to start back to new again?
VBA Code:
dim StartTime to single
call Logoff(ie) set ie = getwebie startTime= Login(ie,username,password) endif in my login function i have Login = Timer()