#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default StopWatch Macros

I am trying to create two Macros linked with two Excel buttons from the forms
toolbar. I want the first button to be in cell B2 on Sheet 1 and say start.
I want the second button to be in cell J2 on Sheet 1 and say End.

I want the first button which is the start button, when it is clicked to
give me the exact time in cell D2 on Sheet 2. I want the second button which
is the end button, when it is clicked to give me the exact time in cell E2 on
Sheet 2. Do you have any ideas about how I might pull that off?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default StopWatch Macros

Create two buttons in sheet1 using form, assign macro's respectively.


Sub Button1()
Sheets("sheet2").Select
Range("D2").Select
ActiveCell.FormulaR1C1 = time()
Sheets("sheet1").Select
ActiveSheet.Activate
End Sub


Sub button2()
Sheets("sheet2").Select
Range("E2").Select
ActiveCell.FormulaR1C1 = time()
Sheets("sheet1").Select
ActiveSheet.Activate
End Sub



On May 30, 5:38*am, ExcelMS wrote:
I am trying to create two Macros linked with two Excel buttons from the forms
toolbar. *I want the first *button to be in cell B2 on Sheet 1 and say start.
*I want the second button to be in cell J2 on Sheet 1 and say End. *

I want the first button which is the start button, when it is clicked to
give me the exact time in cell D2 on Sheet 2. *I want the second button which
is the end button, when it is clicked to give me the exact time in cell E2 on
Sheet 2. *Do you have any ideas about how I might pull that off?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default StopWatch Macros

It works great, thank you so much for your help

"muddan madhu" wrote:

Create two buttons in sheet1 using form, assign macro's respectively.


Sub Button1()
Sheets("sheet2").Select
Range("D2").Select
ActiveCell.FormulaR1C1 = time()
Sheets("sheet1").Select
ActiveSheet.Activate
End Sub


Sub button2()
Sheets("sheet2").Select
Range("E2").Select
ActiveCell.FormulaR1C1 = time()
Sheets("sheet1").Select
ActiveSheet.Activate
End Sub



On May 30, 5:38 am, ExcelMS wrote:
I am trying to create two Macros linked with two Excel buttons from the forms
toolbar. I want the first button to be in cell B2 on Sheet 1 and say start.
I want the second button to be in cell J2 on Sheet 1 and say End.

I want the first button which is the start button, when it is clicked to
give me the exact time in cell D2 on Sheet 2. I want the second button which
is the end button, when it is clicked to give me the exact time in cell E2 on
Sheet 2. Do you have any ideas about how I might pull that off?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting a stopwatch on Excel???!?!?! Paul23 Excel Discussion (Misc queries) 2 June 10th 10 09:20 PM
Is it possible to place a stopwatch in Excel Kari Excel Worksheet Functions 2 June 10th 10 09:16 PM
Stopwatch time DSR_CT Excel Discussion (Misc queries) 2 February 18th 08 08:03 AM
template timer stopwatch wamay Excel Worksheet Functions 1 April 15th 06 10:24 PM
Stopwatch Metolius Dad Excel Worksheet Functions 1 April 11th 05 03:14 PM


All times are GMT +1. The time now is 05:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"