Macro To Run After 30 Seconds
Sep 30, 2009
Is there a way to make a macro delay for like 30 seconds before it does its thing? What I'm trying to do is have something turned off before the spreadsheet is saved, and after the spreadsheet is saved have a macro that runs 30 seconds afterwards to turn said feature back on. On error this macro will simply terminate.
View 5 Replies
ADVERTISEMENT
Jan 18, 2010
I want to change 1 minute 24 seconds and 5 tenths into a seconds number. So basically it would come out as 84.50 seconds.
View 4 Replies
View Related
Sep 23, 2007
How can I Convert Decimal Minutes & Seconds To Total Seconds?
Here is the sample
View 4 Replies
View Related
Jun 28, 2008
I trying to figure a formula to convert time on a phone call eg. 01:01:21 into total seconds (3661). Phonecalls will never be more than an hour long but the spreadsheet I will be supplied with (havn't got it yet!) will display them in the 00:00:00 format.
View 5 Replies
View Related
Jun 18, 2008
Is there an easy way of converting seconds from using a time into hours, minutes, seconds
View 9 Replies
View Related
Jun 21, 2009
How would I go about converting - for example:
0:22 (formated general) to a number = 22
or
1:30 (formated general) to a number = 90
View 9 Replies
View Related
Jul 13, 2006
I am trying to convert a number of "hours" "minutes" and "seconds", to give me a result in seconds only, in order that I may then financially cost the amount of time spent on a task. (A time and motion costing exercise)
Example:
1119:48:06
Represents 1119hours:48minutes:36seconds spent on a task.
I can manually convert this to 4031286 seconds, but it just takes too much time !!!(sorry!)
The data is extracted from a database which is unable to split the hours,minutes,seconds into seperate fields, which prevents me from using three cells in excel.
View 9 Replies
View Related
Dec 7, 2007
I have a spreadsheet that imports data relating to phone call durations. The information imports as a total number of seconds taken.
What I need to do is to change that number of seconds into hours, minutes and seconds.
Changing the format of the cells doesn't work.
I've tried everything I can think of, and run out of ideas.
example:
23 needs changing to 00:00:23
96 needs changing to 00:01:36
268 to 00:04:28
9374 to 02:35:14
View 7 Replies
View Related
Feb 22, 2009
I want to trigger a macro that refreshes a pivot table but I only want to trigger the macro after 15 seconds. The reason is that I am pulling the source data from access mdb so I want only to refresh the data once the data is pulled.
View 3 Replies
View Related
Jan 29, 2013
I have been trying for the last two weeks to convert a list of seconds into minutes and seconds, but just can not do it?
Below is an example of my raw data, that I need to convert into minutes and seconds:
120000
120000
120000
2880000
480000
[code].....
View 5 Replies
View Related
Apr 28, 2008
I have a column of cells in my worksheet that look like this:
1/1/2007 10:53:31 AM
1/1/2008 8:35:46 AM
1/1/2008 8:35:54 AM
1/10/2008 1:39:26 PM
As you can see this is a timestamp in the format: m/d/yyy hh:mm:ss a/pm
The problem is that I’m trying to import this data into another program that accepts the same format without the SECONDS field: m/d/yyy hh:mm a/pm
Since I have thousands of rows of data it just isn’t feasible to go through and manually remove the seconds data from each cell.
Is there a macro or some other shortcut that can do this?
The ultimate goal would be to have the data above end up looking like this:
1/1/2007 10:53 AM
1/1/2008 8:35 AM
1/1/2008 8:35 AM
1/10/2008 1:39 PM
View 11 Replies
View Related
May 2, 2008
i have a caclulate event that I want to run constantly while the workbook is open. How can I do this? below is the code for the calculate event:
Private Sub worksheet_calculate()
If Sheets("Messing Around"). Range("e14") <> changeval Then
Range("e15:e100").ClearContents
If ActiveSheet.Range("E14").Value = "T1/E1" Then
Sheets("Tables").Range("J2:J79").Copy
Sheets("Messing Around").Range("e15").Activate
ActiveCell.PasteSpecial Paste:=xlPasteValues
ElseIf ActiveSheet.Range("E14").Value = "DS3/E3" Then
Sheets("Tables").Range("k2:k79").Copy................
View 4 Replies
View Related
Sep 10, 2008
I have a fairly simple macro that takes a few seconds on my XP-computer with Excel 2003 but takes several minutes on my Vista-computer with Excel 2007.
The XP-PC has 2GB memory, the Vista-PC only 1GB, but it's hard to believe it's only that.
Is Excel 2007 so much slower than 2003?
The macro makes quite extensive use of the .rows(Rownr).Delete method. Is the fact that 2007 has 1 million rows against the 65536 of 2003 the culprit? It has to shift much more data up when deleting a row, no?
View 9 Replies
View Related
Dec 15, 2006
Below is my code to display a seconds count down timer in a textbox.
What I want to be able to do is have another textbox where I can enter the number of seconds that the timer will count down.
I don't know how to take a value from the textbox and make it like
#12:00:15 AM#
How would I do this?
Sub warmTimer()
Dim InitialTime As Single
Dim FinalTime As Single
InitialTime = Time
FinalTime = InitialTime + #12:00:15 AM#
Do
txtTimer.Text = Format((FinalTime - Time), "s")
Loop Until (Time >= FinalTime) Or (Skip = 1)
txtTimer.Text = "Time complete"
End Sub
View 9 Replies
View Related
Feb 28, 2014
I have a value of 0:01:20.555 in a cell in the form of hh.mm.ss.111 and I want to get the adjacent cell to display that value in just seconds (ss.11 to be precise).
So say for example I used 0:01:20.555 (1 minute and 20.555 seconds). So the 1 minute is 60 seconds, so overall the time in seconds would be 80.55 (I need to round off to 2 decimal places instead of the previous 3).
Examples:
0:01:20.555 becomes 80.55.
01:00:00.000 becomes 3600.
0:02:01.111 becomes 121.11
How this can be done for a whole set of data
View 14 Replies
View Related
Apr 29, 2009
I have a cell that has data formatted in this style:
0:00:08:412
h:mm:ss:ms
I was wondering how I might go about writing a formula that would subtract say 2 seconds, or 400ms from that value.
View 9 Replies
View Related
Nov 24, 2009
i need a hand to change the following. how do I get 02:23.5 ( Mins, seconds, 100th of a second) into just seconds.
View 4 Replies
View Related
Feb 6, 2013
I am working on Degree,minutes and seconds & I am using macros.
I have problem in converting from seconds to minutes.
View 1 Replies
View Related
Oct 14, 2008
I have been searching for quite a while now and cannot figure this out. Basically I have a label named lblCountdown, and that is where I am stuck. Every Do loop, example code, whatever I try won't work. I want a countdown for 10 seconds in my form. The form should show the countdown.
View 6 Replies
View Related
Nov 5, 2008
Is there a way to have a message box appear on the screen, but for only 5 seconds? and then disappear?
View 3 Replies
View Related
Jun 3, 2009
I need to pause for 0.5 seconds (half a second). How can I do that. applicatiom.Wait can only be used for whole seconds and a FOR ... NEXT loop is CPU dependant.
View 3 Replies
View Related
Nov 20, 2009
I have some time data that is dumped into an excel file from a phone system. I'm trying to average the data, but I get division by zero errors. The data is originally formatted as "general" and when I convert it to a time format I still get the error. I've attached a small version that has just the time column.
View 2 Replies
View Related
Sep 24, 2007
=(((60/3600)/24)/X)+A1
I have to manually enter X based on the number of times the time stays the same before going on to the next minute.
12:01
12:01
12:01
12:01
12:01
12:01
12:01
=(((60/3600)/24)/7)+A1
I would like to automate the above so that X is caculated, however ; X can be any number from 1 - 25 and is completely random.
View 14 Replies
View Related
Nov 12, 2009
Given any two timestamps with the format
dd-mmm-yyyy hh:mm:ss AM/PM
How to calculate the total time difference in seconds.
For e.g. calculate the time difference in seconds for following
07-Nov-2009 00:00:01 AM
06-Nov-2009 11:59:59 PM
Answer should be 2.
View 12 Replies
View Related
Apr 4, 2012
I am working on a script that allows a user to enter a number (days), and an automatic process performs based on that number. The inputbox has a default value. I have everything except for one issue--we would like the default value to be accepted and the inputbox close if the user does not click OK in say 20 seconds (in order to keep the process from tying up the rest of the process). Is there a way in VBA to click "OK" in the inputbox in 20 seconds so the process can run if the user doesn't click it himself?
View 5 Replies
View Related
May 8, 2012
Time conversion in Excel and nothing worked.
This is my problem: I have a series of data written as following 0:05 (minutes:seconds) BUT in Excel the cell format was set as h:mm. Thus 0:05 is supposed to be 5 seconds but Excel reads it as 12:05:00 AM.
I need to convert everything to just seconds (i.e 0:05 = 5).
View 9 Replies
View Related
Oct 29, 2012
I've created a rudimentary VBA code to display 3 worksheets for 30 seconds each. Need revising it as a loop? The idea is to continue displaying each worksheet until I move the mouse or click any key.
Code:
Private Sub CommandButton2_Click()
'Close the UserForm and display worksheets
Unload Me
Sheets("GROSS").Select
[Code] ..........
View 9 Replies
View Related
Jan 3, 2007
I have a spreadsheet that I need convert times from minutes to seconds. Such as 03:44 minutes to 224 seconds.
View 9 Replies
View Related
Sep 23, 2007
I’m using live data and was wondering if it’s it possible to trigger B1 to change its value from ‘no’ to ‘yes’ 20 seconds after cell A1 changes its value from 0 to 1?
View 9 Replies
View Related
Jan 5, 2008
I have a report that tells me how many items are completed every "x" seconds for a person. What I would like to do is when I enter that information into my spreadsheet is to have it calculate those seconds into minutes and seconds. (i.e. I will enter 105 (seconds) into a cell and I want it to display 1:45. Is there a formula or setting in the cell format that can do this? The problem I am going to have is that I will have to enter in each cell as seconds every time and then need it to convert to the minute and second format.
View 9 Replies
View Related