Timer advance cell by cell

smcelv

Board Regular
Joined
Jul 26, 2011
Messages
59
Hi guys
Need advice on how to set up a function to move and colour cells after 30 minute intervals - for each working day of the week. :confused:
 
Does it complain when the box is ticked (it should bypass CancelOnTime)?
 
Upvote 0

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
What happens if you rewrite CanelOnTime as:
Rich (BB code):
Sub CancelOnTime() 
Application.OnTime EarliestTime:=dTime, Procedure:="ColorCell", Schedule:=False 
lRow = 0 
dTime = 0 
End Sub 


 
Upvote 0
I corrected what you told me and I dont get the error now but nothing seems to happen in the worksheet. Was wondering sijpie is there somewhere in the code that should declare that I want the program to colour cells from "CheckBoxLink" to T5?
I thought maybe "Change "1" and "A" to suit" had something to do with it?

Application.OnTime dTime, "ColorCell"
lRow = lRow + 1
'Change "1" and "A" to suit
Sheets(1).Cells(lRow, "A").Interior.Color = 65535
 
Upvote 0
I thought you had sorted out the action to be taken first, so you know it works.
So what your ColorCell does at the moment is set the colour for Ax to yellow, with x incrementing every 30 minutes.

So it changes the colour of Column A.

The two images you posted earlier have disappeared, so I ma not sure what yo are trying to achieve, I seem to recal you want to colour a row one cell at a time
 
Upvote 0

Forum statistics

Threads
1,225,155
Messages
6,183,212
Members
453,151
Latest member
Lizamaison

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top