Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ajay
 
Posts: n/a
Default Attaching a particular user defined function to cust button

Hello All
Quick question can I attach a user defined function from Personal workbook
to a customized button, I know I can right mouse click the button and assign
macro but the list does not include functions.
Probably doing something v wrong help would be much appreciated
TIA
Ajay
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Ajay,

Why are you using a function? Functions return a result to the caller, so
even if you could assign it, no-one would see the answer. A button is better
served to run a routine (macro, sub) that does things, like colour cells,
etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Ajay" wrote in message
...
Hello All
Quick question can I attach a user defined function from Personal workbook
to a customized button, I know I can right mouse click the button and

assign
macro but the list does not include functions.
Probably doing something v wrong help would be much appreciated
TIA
Ajay



  #3   Report Post  
Earl Kiosterud
 
Posts: n/a
Default

Ajay,

We may have a terminology problem here. If it's really a user-defined
function, it can be called only in a formula, not from a button. If the
macro is a sub (not a function), then it can be assigned to a button.

--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"Ajay" wrote in message
...
Hello All
Quick question can I attach a user defined function from Personal workbook
to a customized button, I know I can right mouse click the button and
assign
macro but the list does not include functions.
Probably doing something v wrong help would be much appreciated
TIA
Ajay



  #4   Report Post  
Ajay
 
Posts: n/a
Default

No problem it was just a thought I have a lot of user defined functions listed
and I just wondered if I could get to one or more slightly quicker than
usual!!
I use one of Dave Petersons the multiple lookup function a lot which works
great
just thought I could put it on a toolbar/button.
Thanks for the replies
Ajay

"Earl Kiosterud" wrote:

Ajay,

We may have a terminology problem here. If it's really a user-defined
function, it can be called only in a formula, not from a button. If the
macro is a sub (not a function), then it can be assigned to a button.

--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"Ajay" wrote in message
...
Hello All
Quick question can I attach a user defined function from Personal workbook
to a customized button, I know I can right mouse click the button and
assign
macro but the list does not include functions.
Probably doing something v wrong help would be much appreciated
TIA
Ajay




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
user defined date [email protected] Excel Worksheet Functions 1 January 21st 05 08:57 PM
user defined formats for small numbers Anette Excel Discussion (Misc queries) 1 January 7th 05 04:59 PM
User defined charts- font size too small Bill B Charts and Charting in Excel 1 December 30th 04 06:23 PM
Function that gives Windows current user name? Petu Excel Worksheet Functions 2 December 8th 04 09:33 AM
how to move user defined function Grant Excel Worksheet Functions 1 November 17th 04 06:38 PM


All times are GMT +1. The time now is 10:49 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"