-
WSKel
AskWoody LoungerI couldnt get further elaboration in the other thread, any ideas?
-
WSKel
AskWoody Loungerthe text box is linked to the code by pulling the range:
Range(“A” & i) = timebox.value
to navigate, I reverse/advance it:
i = i + 1
Timebox.value = Range(“A” & i)
‘simulates “Next” button click.I edited the values as you suggested, and Hey! that works!
) Seems I need to tweak it a little.. the Submit button is iffy..
THANKS!
-
WSKel
AskWoody LoungerGreat Suggestion Jim!
I don’t have a need for negatives as i’m dealing with call-times!)
For all those interested, Rory(M) has supplied the answer to this question in this thread.
-
WSKel
AskWoody LoungerIt formats as the time until I ‘navigate’ back to the previous entry. Although the host cells are formatted as time, the timebox is returning the value as ‘general’.
Thanks!
-
WSKel
AskWoody LoungerOkay, one more small hurdle..
I am using the following code to halt the timer if they click on a ‘submit’ button to enter a new record:
*************CODE START**************
Sub MoveSubmitButton_Click()
If Timebox.Value > “00:00:00” Then
If MsgBox(“Time will Stop, Continue?”, vbOKCancel, “Time still Elapsing”) = vbOK Then
Call cmdstartclock_Click
End If
Else
Exit Sub
End If
*****************CODE END******************
The problem is, even if they stop the clock, the value is greater than “00:00:00” which results in a “click.”Is there any way to refer to the code you provided?
Thanks!
Drk.
textLast one, I swear! -
WSKel
AskWoody LoungerDid anyone ever tell you you’re a GOD? it works like a charm!!! Say, do you have any insight on making my timebox display the time? I believe I had posted that question in another thread… here
THANKS!! -
WSKel
AskWoody LoungerHere she is!
********CODE START*******
‘code module of frmtracking
Public dblStarted As Double, dblStopped As Double, dblScheduled As Double
Sub cmdstartclock_Click()
Static blnStarted As Boolean
If blnStarted = False Then
dblScheduled = Now + TimeValue(“00:00:01”)
RunOnTime
dblStarted = Now
With Me
.cmdstartclock.Caption = “Stop”
.Timebox = Format(Now – dblStarted, “hh:mm:ss”)
End With
Else
dblStopped = Now
With Me
.cmdstartclock.Caption = “Start”
.Timebox = Format(dblStopped – dblStarted, “hh:mm:ss”)
End With
Application.OnTime dblScheduled, “TimeUpdate”, , False
End If
blnStarted = Not blnStarted
End Sub
Sub RunOnTime()
Application.OnTime dblScheduled, “TimeUpdate”
End Sub
***************CODE END**************In the Workbook initialize, i have placed the following code:
*************CODE START**************
Public Sub TimeUpdate()
With ClientSupportTrack
.Timebox = Format(Now – .dblStarted, “hh:mm:ss”)
.dblScheduled = .dblScheduled + TimeValue(“00:00:01”)
.RunOnTime
End With
End Sub
*********************CODE END********************Thanks Rory!
-
WSKel
AskWoody LoungerBrilliant! Through a combination of the two, I have a seamless transaction, which still alerts the user, Marvelous!
Thank You!!!!
-
WSKel
AskWoody LoungerI’ve pasted the code as is, and modified it to fit my labels, and commands.
I’m getting the following error:
Run-time error ‘1004’:
Method ‘OnTime’ of object ‘_Application’ failedDebug is referencing line 17 of the sample you provided.
Any ideas?
Thanks Millions Guys!
Drk. -
WSKel
AskWoody LoungerIndeed, congrats to all the stars and moderators, Great job! I’m learning, it’s great, well done!
-
WSKel
AskWoody LoungerI’ve added an exit sub statement, in the following syntax:
‘****CODE START******
…
MsgBox “Are you sure you want to submit your call statistics for today?”, vbOKCancel, “Verify Finalization”
If vbCancel Then Exit Sub
…
‘********CODE END*********But, even when I click on OK now, it’s not proceeding… is this correct syntax to specify that only if I click “Cancel” it’s to end the sub?
-
WSKel
AskWoody LoungerI’ve added an exit sub statement, in the following syntax:
MsgBox “Are you sure you want to submit your call statistics for today?”, vbOKCancel, “Verify Finalization”
If vbCancel Then Exit SubBut, even when I click on OK now, it’s not proceeding… is this correct to specify that only if I click “Cancel” it’s to end the sub?
-
WSKel
AskWoody LoungerOkay,
Heres what i’ve got!
‘******************CODE START***************
Dim strExists
strExists = Dir(“C:WINDOWSTEMPtoday.xls”, vbDirectory)If Len(strExists) > 0 Then
MsgBox “Are you sure you want to finalize?”, vbOKCancel, “Verify Finalization”
If vbCancel Then ‘???????????
MsgBox “Please Overwrite Existing File”, vbOKOnly, “File Already Exists.”
Else
End If
ActiveWorkbook.SaveAs FileName:=”C:WINDOWSTEMPtoday.xls”, FileFormat:= _
xlNormal, Password:=””, WriteResPassword:=””, ReadOnlyRecommended:=False _
, CreateBackup:=False
‘*************CODE END************
The problem I am having is how do I step over the save command if the user clicks on Cancel? how do I abort the sub? -
WSKel
AskWoody LoungerApparently not, there is TOOLS, ADD-INS… it seems it would be there, but there’s no reference to Microsoft Scripting Runtime. Bummer too, I have 2k at home…
As for the discussion, looks like there may be a helpful item or two there, the msgbox components look promising, I will post back if they don’t work.
Thanks Millions!
Drk. -
WSKel
AskWoody LoungerThis option is in Excel ’97, correct?
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
24H2 Installer – don’t see ption for non distructive install (Awaiting moderation)
by
JP
2 hours, 21 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
8 hours, 32 minutes ago -
How much I spent on the Mac mini
by
Will Fastie
3 hours, 21 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
20 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
14 hours, 24 minutes ago -
Setting up Windows 11
by
Susan Bradley
1 hour, 35 minutes ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
9 hours, 52 minutes ago -
Powershell version?
by
CWBillow
10 hours, 45 minutes ago -
SendTom Toys
by
CWBillow
5 hours, 25 minutes ago -
Add shortcut to taskbar?
by
CWBillow
14 hours, 41 minutes ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
1 day, 7 hours ago -
How can I install Skype on Windows 7?
by
Help
1 day, 5 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
12 hours, 40 minutes ago -
We live in a simulation
by
Alex5723
1 day, 21 hours ago -
Netplwiz not working
by
RetiredGeek
1 day, 7 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
2 days, 9 hours ago -
Microsoft is killing Authenticator
by
Alex5723
21 hours, 14 minutes ago -
Downloads folder location
by
CWBillow
2 days, 16 hours ago -
Remove a User from Login screen
by
CWBillow
1 day, 11 hours ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
2 days, 7 hours ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
2 days, 7 hours ago -
Is it a bug or is it expected?
by
Susan Bradley
9 hours, 19 minutes ago -
Image for Windows TBwinRE image not enough space on target location
by
bobolink
2 days, 6 hours ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
1 day, 5 hours ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
2 days, 20 hours ago -
Multiple Partitions?
by
CWBillow
2 days, 20 hours ago -
World Passkey Day 2025
by
Alex5723
16 hours, 51 minutes ago -
Add serial device in Windows 11
by
Theodore Dawson
4 days, 5 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
2 days, 6 hours ago -
Cached credentials is not a new bug
by
Susan Bradley
4 days, 9 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.