Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Vsn Vsn is offline
external usenet poster
 
Posts: 21
Default tool bar button

Hi all,

Could someone tell me how I could assign a function which is loaded with an
add-in (*.xla) to a tool bar button. The function is to paste a date-time
stamp value. The idea is that the function will be always available, via the
tool bar button, in any workbook I do open.

I cant figure out how to do this, while in Word it is quit simple via the
"Normal.dot" template.


Thx, for any help on this one.

Ludovic




  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default tool bar button

Here is the macro.

Sub NOWTIME()
ActiveCell.Value = Format(Now(), "dd mmm yyyy h:mm:ss AM/PM")
End Sub

Store it in a module in a new workbook.

Assign it to a toolbar button which you get from ToolsCustomizeCommandsMacros

Save the workbook as an add-in stored in Office\Libray folder.

Load the add-in through ToolsAdd-ins and it will open each time Excel is
started.

NOTE: a static date/time can be entered by this method without a macro.........

CTRL + ;<spaceCTRL + SHIFT + ;


Gord Dibben MS Excel MVP

On Fri, 22 Jun 2007 17:38:01 +0400, "Vsn" <vsn at hotmail wrote:

Hi all,

Could someone tell me how I could assign a function which is loaded with an
add-in (*.xla) to a tool bar button. The function is to paste a date-time
stamp value. The idea is that the function will be always available, via the
tool bar button, in any workbook I do open.

I cant figure out how to do this, while in Word it is quit simple via the
"Normal.dot" template.


Thx, for any help on this one.

Ludovic




  #3   Report Post  
Posted to microsoft.public.excel.newusers
Vsn Vsn is offline
external usenet poster
 
Posts: 21
Default tool bar button

Gord,

Thx for below advice it works fine.

I was however wondering if I could do it without the workbook? I mean having
the Macro in an module which sits in a XLA file?

Thx,
Ludovic

"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
Here is the macro.

Sub NOWTIME()
ActiveCell.Value = Format(Now(), "dd mmm yyyy h:mm:ss AM/PM")
End Sub

Store it in a module in a new workbook.

Assign it to a toolbar button which you get from
ToolsCustomizeCommandsMacros

Save the workbook as an add-in stored in Office\Libray folder.

Load the add-in through ToolsAdd-ins and it will open each time Excel is
started.

NOTE: a static date/time can be entered by this method without a
macro.........

CTRL + ;<spaceCTRL + SHIFT + ;


Gord Dibben MS Excel MVP

On Fri, 22 Jun 2007 17:38:01 +0400, "Vsn" <vsn at hotmail wrote:

Hi all,

Could someone tell me how I could assign a function which is loaded with
an
add-in (*.xla) to a tool bar button. The function is to paste a date-time
stamp value. The idea is that the function will be always available, via
the
tool bar button, in any workbook I do open.

I cant figure out how to do this, while in Word it is quit simple via the
"Normal.dot" template.


Thx, for any help on this one.

Ludovic






  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default tool bar button

Re-read my original post.

That post gave instructions on how to place the macro in a new workbook which
you save as an add-in(*.xla)

Add-ins are nothing more than workbooks that have been saved as an *.xla file.

FileSave AsFile TypeMS Excel Add-in(*.xla)


Gord

On Sat, 23 Jun 2007 19:20:43 +0400, "Vsn" <vsn at hotmail wrote:

Gord,

Thx for below advice it works fine.

I was however wondering if I could do it without the workbook? I mean having
the Macro in an module which sits in a XLA file?

Thx,
Ludovic

"Gord Dibben" <gorddibbATshawDOTca wrote in message
.. .
Here is the macro.

Sub NOWTIME()
ActiveCell.Value = Format(Now(), "dd mmm yyyy h:mm:ss AM/PM")
End Sub

Store it in a module in a new workbook.

Assign it to a toolbar button which you get from
ToolsCustomizeCommandsMacros

Save the workbook as an add-in stored in Office\Libray folder.

Load the add-in through ToolsAdd-ins and it will open each time Excel is
started.

NOTE: a static date/time can be entered by this method without a
macro.........

CTRL + ;<spaceCTRL + SHIFT + ;


Gord Dibben MS Excel MVP

On Fri, 22 Jun 2007 17:38:01 +0400, "Vsn" <vsn at hotmail wrote:

Hi all,

Could someone tell me how I could assign a function which is loaded with
an
add-in (*.xla) to a tool bar button. The function is to paste a date-time
stamp value. The idea is that the function will be always available, via
the
tool bar button, in any workbook I do open.

I cant figure out how to do this, while in Word it is quit simple via the
"Normal.dot" template.


Thx, for any help on this one.

Ludovic






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
Placing a Command Button in a New Tool Menu Office Junior[_2_] Excel Discussion (Misc queries) 2 May 12th 07 04:50 PM
change tool bar button image [email protected] Excel Discussion (Misc queries) 5 December 9th 05 07:00 PM
adding a button to a tool bar LenQ8 Excel Worksheet Functions 1 October 23rd 05 05:26 AM
Is it possible to make a Button on a tool bar to launch an Add-in Wolf Excel Discussion (Misc queries) 1 June 24th 05 12:13 AM
Adding Button to Tool Bar Jenn Excel Discussion (Misc queries) 6 February 23rd 05 09:33 PM


All times are GMT +1. The time now is 09:23 AM.

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

About Us

"It's about Microsoft Excel"