Sub AUTOREFRECH()
Dim c As Range
Do Until Range("a1").Value = "STOP"
For Each c In Range("A7:A7")
c = c
Next
Loop
End Sub
i want to to is edit A7 and then enter every one to two minutes unit forever, is it possible to do it?
Sub AUTOREFRECH()
Dim c As Range
Do Until Range("a1").Value = "STOP"
For Each c In Range("A7:A7")
c = c
Next
Loop
End Sub
i want to to is edit A7 and then enter every one to two minutes unit forever, is it possible to do it?
cherrychan,
I'm afraid I don't understand what you need. You are taking the value from A7 and pasting it into itself, until Cell A1 says "stop" but how does the cell A1 change?
To put in a delay/pause try:
Please Login or Register to view this content.
Please help by:
Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know
There are 10 kinds of people in this world... those who understand binary, and those who don't.
Sub AUTOREFRECH()
Dim c As Range
For Each c In Range("A7:A7")
c = c
Next
End Sub
A7 B7 C7
A 0.01 0.02
the dataset is from website, and changing with time, but this excal cannot update automaticly, onlyway is edit A7, unchange A, and then enter again, the new value of B7 and C7 will update.
so i add the macao that hope can refresh automately every minitute, let the data move. sorry for my poor english adn thank for your help
Sorry , how to add Application.Wait Now + TimeValue("00:00:01") in inside?
Sub AUTOREFRECH()
Dim c As Range
For Each c In Range("A7:A7")
c = c
Next
End Sub
I see you took out the Do...Until loop. Now the macro will update A7 once and finish... is that intended? Is another macro calling this one? If not then put your code as it was...
Please Login or Register to view this content.
Thnak you so much, arkadi, is work.. thanks
You're welcome. Please mark the post as solved?
I don't see how one can change the value in A1. While Application.Wait is running, the user can't change a cell's value.
Perhaps this would work better.
Please Login or Register to view this content.
_
...How to Cross-post politely...
..Wrap code by selecting the code and clicking the # or read this. Thank you.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks