PC Review


Reply
Thread Tools Rate Thread

Changing function key definition to insert time

 
 
=?Utf-8?B?TWVkVGVjaA==?=
Guest
Posts: n/a
 
      28th Oct 2006
We use Excel at work and now due to some changes in procedures, we are
required to insert a start and stop time for our testing procedures. While I
know about the control + shift + : to insert time, I was hoping for someway
to change a function key to do this. We have numerous people doing this
testing and it would make life alot easier to just hit one key instead of the
three
 
Reply With Quote
 
 
 
 
JakeyC
Guest
Posts: n/a
 
      28th Oct 2006
One way to do it would be to have an add-in installed with the line:

Application.OnKey "{F8}", "TimeAdder"

in its WorkBook_Open event, and in its Module, the Sub:

Sub TimeAdder()
ActiveCell.Value = Time
End Sub

This would replace the F8 function with this Sub's function.


MedTech wrote:
> We use Excel at work and now due to some changes in procedures, we are
> required to insert a start and stop time for our testing procedures. While I
> know about the control + shift + : to insert time, I was hoping for someway
> to change a function key to do this. We have numerous people doing this
> testing and it would make life alot easier to just hit one key instead of the
> three


 
Reply With Quote
 
=?Utf-8?B?TWVkVGVjaA==?=
Guest
Posts: n/a
 
      30th Oct 2006
Now realize that I work with excel and know a little, but doing macros and
visual basic is totally new to me. When you say to have a add in installed...
just how and where do I do this.

"JakeyC" wrote:

> One way to do it would be to have an add-in installed with the line:
>
> Application.OnKey "{F8}", "TimeAdder"
>
> in its WorkBook_Open event, and in its Module, the Sub:
>
> Sub TimeAdder()
> ActiveCell.Value = Time
> End Sub
>
> This would replace the F8 function with this Sub's function.
>
>
> MedTech wrote:
> > We use Excel at work and now due to some changes in procedures, we are
> > required to insert a start and stop time for our testing procedures. While I
> > know about the control + shift + : to insert time, I was hoping for someway
> > to change a function key to do this. We have numerous people doing this
> > testing and it would make life alot easier to just hit one key instead of the
> > three

>
>

 
Reply With Quote
 
JakeyC
Guest
Posts: n/a
 
      30th Oct 2006
An Add-In is simply a standard workbook, but saved as an Add-in (.xla)
instead of the normal .xls so it is 'invisible' when in use. You can
set this option (along with Html, CSV, etc.) during SaveAs.

To install an Add-In, go to Tools -> Add-ins and use Browse... to find
the .xla file you saved. Make sure there's a check in the box next to
it in the list of Add-Ins and you're ready to go.

Check Help (F1) for more detailed info.


MedTech wrote:
> Now realize that I work with excel and know a little, but doing macros and
> visual basic is totally new to me. When you say to have a add in installed...
> just how and where do I do this.
>
> "JakeyC" wrote:
>
> > One way to do it would be to have an add-in installed with the line:
> >
> > Application.OnKey "{F8}", "TimeAdder"
> >
> > in its WorkBook_Open event, and in its Module, the Sub:
> >
> > Sub TimeAdder()
> > ActiveCell.Value = Time
> > End Sub
> >
> > This would replace the F8 function with this Sub's function.
> >
> >
> > MedTech wrote:
> > > We use Excel at work and now due to some changes in procedures, we are
> > > required to insert a start and stop time for our testing procedures. While I
> > > know about the control + shift + : to insert time, I was hoping for someway
> > > to change a function key to do this. We have numerous people doing this
> > > testing and it would make life alot easier to just hit one key instead of the
> > > three

> >
> >


 
Reply With Quote
 
=?Utf-8?B?TWVkVGVjaA==?=
Guest
Posts: n/a
 
      30th Oct 2006
Thanks, I'll give this a try


"JakeyC" wrote:

> An Add-In is simply a standard workbook, but saved as an Add-in (.xla)
> instead of the normal .xls so it is 'invisible' when in use. You can
> set this option (along with Html, CSV, etc.) during SaveAs.
>
> To install an Add-In, go to Tools -> Add-ins and use Browse... to find
> the .xla file you saved. Make sure there's a check in the box next to
> it in the list of Add-Ins and you're ready to go.
>
> Check Help (F1) for more detailed info.
>
>
> MedTech wrote:
> > Now realize that I work with excel and know a little, but doing macros and
> > visual basic is totally new to me. When you say to have a add in installed...
> > just how and where do I do this.
> >
> > "JakeyC" wrote:
> >
> > > One way to do it would be to have an add-in installed with the line:
> > >
> > > Application.OnKey "{F8}", "TimeAdder"
> > >
> > > in its WorkBook_Open event, and in its Module, the Sub:
> > >
> > > Sub TimeAdder()
> > > ActiveCell.Value = Time
> > > End Sub
> > >
> > > This would replace the F8 function with this Sub's function.
> > >
> > >
> > > MedTech wrote:
> > > > We use Excel at work and now due to some changes in procedures, we are
> > > > required to insert a start and stop time for our testing procedures. While I
> > > > know about the control + shift + : to insert time, I was hoping for someway
> > > > to change a function key to do this. We have numerous people doing this
> > > > testing and it would make life alot easier to just hit one key instead of the
> > > > three
> > >
> > >

>
>

 
Reply With Quote
 
=?Utf-8?B?TWVkVGVjaA==?=
Guest
Posts: n/a
 
      31st Oct 2006
well, 3 of us has tried to enter this and none of us can get it to work. Can
you go thru this step by step to see where we screwed up in the entering..

"MedTech" wrote:

> Thanks, I'll give this a try
>
>
> "JakeyC" wrote:
>
> > An Add-In is simply a standard workbook, but saved as an Add-in (.xla)
> > instead of the normal .xls so it is 'invisible' when in use. You can
> > set this option (along with Html, CSV, etc.) during SaveAs.
> >
> > To install an Add-In, go to Tools -> Add-ins and use Browse... to find
> > the .xla file you saved. Make sure there's a check in the box next to
> > it in the list of Add-Ins and you're ready to go.
> >
> > Check Help (F1) for more detailed info.
> >
> >
> > MedTech wrote:
> > > Now realize that I work with excel and know a little, but doing macros and
> > > visual basic is totally new to me. When you say to have a add in installed...
> > > just how and where do I do this.
> > >
> > > "JakeyC" wrote:
> > >
> > > > One way to do it would be to have an add-in installed with the line:
> > > >
> > > > Application.OnKey "{F8}", "TimeAdder"
> > > >
> > > > in its WorkBook_Open event, and in its Module, the Sub:
> > > >
> > > > Sub TimeAdder()
> > > > ActiveCell.Value = Time
> > > > End Sub
> > > >
> > > > This would replace the F8 function with this Sub's function.
> > > >
> > > >
> > > > MedTech wrote:
> > > > > We use Excel at work and now due to some changes in procedures, we are
> > > > > required to insert a start and stop time for our testing procedures. While I
> > > > > know about the control + shift + : to insert time, I was hoping for someway
> > > > > to change a function key to do this. We have numerous people doing this
> > > > > testing and it would make life alot easier to just hit one key instead of the
> > > > > three
> > > >
> > > >

> >
> >

 
Reply With Quote
 
JakeyC
Guest
Posts: n/a
 
      1st Nov 2006
If you email me, I'll reply later today with the add-in attached for
you to install.


MedTech wrote:
> well, 3 of us has tried to enter this and none of us can get it to work. Can
> you go thru this step by step to see where we screwed up in the entering..
>
> "MedTech" wrote:
>
> > Thanks, I'll give this a try
> >
> >
> > "JakeyC" wrote:
> >
> > > An Add-In is simply a standard workbook, but saved as an Add-in (.xla)
> > > instead of the normal .xls so it is 'invisible' when in use. You can
> > > set this option (along with Html, CSV, etc.) during SaveAs.
> > >
> > > To install an Add-In, go to Tools -> Add-ins and use Browse... to find
> > > the .xla file you saved. Make sure there's a check in the box next to
> > > it in the list of Add-Ins and you're ready to go.
> > >
> > > Check Help (F1) for more detailed info.
> > >
> > >
> > > MedTech wrote:
> > > > Now realize that I work with excel and know a little, but doing macros and
> > > > visual basic is totally new to me. When you say to have a add in installed...
> > > > just how and where do I do this.
> > > >
> > > > "JakeyC" wrote:
> > > >
> > > > > One way to do it would be to have an add-in installed with the line:
> > > > >
> > > > > Application.OnKey "{F8}", "TimeAdder"
> > > > >
> > > > > in its WorkBook_Open event, and in its Module, the Sub:
> > > > >
> > > > > Sub TimeAdder()
> > > > > ActiveCell.Value = Time
> > > > > End Sub
> > > > >
> > > > > This would replace the F8 function with this Sub's function.
> > > > >
> > > > >
> > > > > MedTech wrote:
> > > > > > We use Excel at work and now due to some changes in procedures, we are
> > > > > > required to insert a start and stop time for our testing procedures. While I
> > > > > > know about the control + shift + : to insert time, I was hoping for someway
> > > > > > to change a function key to do this. We have numerous people doing this
> > > > > > testing and it would make life alot easier to just hit one key instead of the
> > > > > > three
> > > > >
> > > > >
> > >
> > >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run-Time Error 1004 Application-Definition or Object-Definition Error jparnold Microsoft Excel Programming 5 25th Dec 2009 04:33 PM
Insert Function next to formula bar gives Run-time Error '50290' Nick Microsoft Excel Misc 0 7th Jul 2008 03:41 PM
when i build someone's project, and right click a function "goto definition" is disabled. how to reconfigure a .net project to support "goto definition" when i right click on function calls? DR Microsoft C# .NET 4 9th Jan 2008 04:31 PM
when i build someone's project, and right click a function "goto definition" is disabled. how to reconfigure a .net project to support "goto definition" when i right click on function calls? DR Microsoft VB .NET 2 9th Jan 2008 02:09 PM
Automatically insert time without changing. =?Utf-8?B?Sm9rZXI=?= Microsoft Excel Misc 1 16th Feb 2006 03:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:35 PM.