Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VB Function in function list


Hi

I opened Tools Macro VB Editor and on Sheet1, I right-clicked and
selected View Code. I pasted my code in there.

Now, how do I get my function foo() shown up in the Function list
(*-f-*) ?

Thanks


--
anjanesh

Freelance Developer
------------------------------------------------------------------------
anjanesh's Profile: http://www.excelforum.com/member.php...o&userid=27132
View this thread: http://www.excelforum.com/showthread...hreadid=568743

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default VB Function in function list

First the function is in the wrong place. It needs to be in a general code
module, not a worksheet module. In the VBEditor right-click on your
VBAProject, Insert, Module and place your function there. Now when you open
the list of functions, scroll down to User Defined and you will find your
function listed there.

Mike F

"anjanesh" wrote in
message ...

Hi

I opened Tools Macro VB Editor and on Sheet1, I right-clicked and
selected View Code. I pasted my code in there.

Now, how do I get my function foo() shown up in the Function list
(*-f-*) ?

Thanks


--
anjanesh

Freelance Developer
------------------------------------------------------------------------
anjanesh's Profile:
http://www.excelforum.com/member.php...o&userid=27132
View this thread: http://www.excelforum.com/showthread...hreadid=568743



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VB Function in function list


Thanks Mike.

So whats the code section for each sheet for anyway

--
anjanes

Freelance Develope
-----------------------------------------------------------------------
anjanesh's Profile: http://www.excelforum.com/member.php...fo&userid=2713
View this thread: http://www.excelforum.com/showthread.php?threadid=56874

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default VB Function in function list

It is for sheet specific code. Like "whenever a cell in this one sheet is
changed then run this". See
http://www.cpearson.com/excel/events.htm

HTH. Best wishes Harald

"anjanesh" skrev i
melding ...

Thanks Mike.

So whats the code section for each sheet for anyway ?


--
anjanesh

Freelance Developer
------------------------------------------------------------------------
anjanesh's Profile:

http://www.excelforum.com/member.php...o&userid=27132
View this thread: http://www.excelforum.com/showthread...hreadid=568743



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
using pulldown list with a list and autocompleet function Peter Jonkers Excel Worksheet Functions 4 September 9th 09 09:25 AM
List Box and IF function Jenny Beech Excel Worksheet Functions 1 April 23rd 09 07:32 AM
How do I create a function into function list? Hossein Farhani Excel Programming 2 April 23rd 05 06:19 PM
Adding a custom function to the default excel function list DonutDel Excel Programming 3 November 21st 03 03:41 PM


All times are GMT +1. The time now is 11:33 PM.

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"