I have a world time that have a counter

L

Legacy 420921

Guest
i have question time that counter for code
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)[/FONT][/COLOR]
[COLOR=#000000][FONT=Courier]Dim hour As Boolean[/FONT][/COLOR]
[COLOR=#000000][FONT=Courier]hour = Not (hour)[/FONT][/COLOR]
[COLOR=#000000][FONT=Courier]Do While hour = True[/FONT][/COLOR]
[COLOR=#000000][FONT=Courier]DoEvents[/FONT][/COLOR]
[COLOR=#000000][FONT=Courier]Range("A3") = TimeValue(Now)[/FONT][/COLOR]
[COLOR=#000000][FONT=Courier]Loop[/FONT][/COLOR]
[COLOR=#000000][FONT=Courier]End Sub

how i get to start when you open the file witout click anywhere in a cell


TY Thomas


 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Click on ink to get picture

https://1drv.ms/u/s!AnJwxxiz0Ezpg8hz4-c75IFUCi6x_w?e=9TzZQi
s!AnJwxxiz0Ezpg8hz4-c75IFUCi6x_w
s!AnJwxxiz0Ezpg8hz4-c75IFUCi6x_w
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

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