Timer in xls?

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2007
Posts: 6
Reputation: mason12345 is an unknown quantity at this point 
Solved Threads: 0
mason12345 mason12345 is offline Offline
Newbie Poster

Timer in xls?

 
0
  #1
Feb 12th, 2007
Could anyone help me with a procedure to display a timer in xls (e.g a count down)?

Also, could you please tell me what event method causes a macro to get executed upon starting a workbook? I want my macro to get executed without the user pushing any buttons.

Thank you in advance for your reply!

-m
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 6
Reputation: mason12345 is an unknown quantity at this point 
Solved Threads: 0
mason12345 mason12345 is offline Offline
Newbie Poster

Re: Timer in xls?

 
0
  #2
Feb 13th, 2007
I was able to resolve the first question using the Timer parameter in VBA. I accomplished the count down with a loop procedure. I can post the procedure if anyone is interested. Does anyone know about my second question?

Thanks,
-m
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 6
Reputation: mason12345 is an unknown quantity at this point 
Solved Threads: 0
mason12345 mason12345 is offline Offline
Newbie Poster

Re: Timer in xls?

 
0
  #3
Feb 13th, 2007
I found the answer to the second question as well. The code should go in MS excel objects, by clicking on the "this workbook" object and selecting the behavior (in my case "open") from the top code window.

Private Sub Workbook_Open()
Application.Run "'myxlsfile'!MyMacro"
End Sub



Thanks for those who read my original questions.

cheers,
-m
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 1417 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC