refresh a cell automaticaly each second ?

  • Thread starter Thread starter LoloSoft
  • Start date Start date
L

LoloSoft

hello,

how to refresh a cell automatically each second (by example)
in VBA /excel ?

thanks
 
Laurent,

This should do what you want.

you will need to add this to the workbook open event

Private Sub Workbook_Open()
Call updatecell
End Sub

and add this to a code module

Sub updatecell()
Range("a1").Value = Range("a1").Value + 1 ' amend this to do wha
updates you need.

Application.OnTime Now + TimeValue("00:00:01"), "updatecell"
End Sub


HTH
;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top