PC Review


Reply
Thread Tools Rate Thread

Button in a toolbar to insert a specific function

 
 
catherine
Guest
Posts: n/a
 
      1st Oct 2009
Hi,

Is it possible to have a shortcut in my Menu to insert a specific function
without going through the list or selecting it when I ckick on Insert -
Function.

I know how to customize my toolbar, but I want a button for the COS function
for example.

I have Excel 2003 SP3

Thanks.
 
Reply With Quote
 
 
 
 
Jeff
Guest
Posts: n/a
 
      2nd Oct 2009
Hi Cathrine,
place this pocedure in your personal.xls

Public Sub getCosine()
On Error Resume Next
ActiveCell.Value = "=COS(" & ActiveCell.Value & ")"
End Sub

Add your new control as usual and assign this macro to it.

If you haven't used your personal.xls before have a look here.

http://www.rondebruin.nl/personal.htm

HTH


"catherine" wrote:

> Hi,
>
> Is it possible to have a shortcut in my Menu to insert a specific function
> without going through the list or selecting it when I ckick on Insert -
> Function.
>
> I know how to customize my toolbar, but I want a button for the COS function
> for example.
>
> I have Excel 2003 SP3
>
> Thanks.

 
Reply With Quote
 
Catherine
Guest
Posts: n/a
 
      4th Oct 2009
Thanks Jeff

I will try it

Catherine
"Jeff" <(E-Mail Removed)> a écrit dans le message de
news:2CA497B6-BB04-446C-8EE3-(E-Mail Removed)...
> Hi Cathrine,
> place this pocedure in your personal.xls
>
> Public Sub getCosine()
> On Error Resume Next
> ActiveCell.Value = "=COS(" & ActiveCell.Value & ")"
> End Sub
>
> Add your new control as usual and assign this macro to it.
>
> If you haven't used your personal.xls before have a look here.
>
> http://www.rondebruin.nl/personal.htm
>
> HTH
>
>
> "catherine" wrote:
>
>> Hi,
>>
>> Is it possible to have a shortcut in my Menu to insert a specific
>> function
>> without going through the list or selecting it when I ckick on Insert -
>> Function.
>>
>> I know how to customize my toolbar, but I want a button for the COS
>> function
>> for example.
>>
>> I have Excel 2003 SP3
>>
>> Thanks.


 
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
Assign a specific codesnippet to a toolbar button. Hardy Microsoft C# .NET 0 8th Mar 2007 05:11 AM
Assign macro to WB-specific toolbar button? Ian Microsoft Excel Programming 6 2nd Mar 2007 10:11 PM
How can I customize a toolbar to insert a specific word in the foo =?Utf-8?B?Q2hyaXN0aWFu?= Microsoft Word Document Management 6 11th Mar 2006 06:55 AM
Enable toolbar button in one specific worksheet =?Utf-8?B?SnVhbks=?= Microsoft Excel Programming 1 26th Jul 2005 11:16 AM
Toolbar button for specific printer Wowbagger Microsoft Word New Users 3 16th Jan 2004 01:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:47 PM.