Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default UDFs Worksheet Level

All:

Is it possible to use UDFs in a worksheet's code section? If so, how?

I can't seem to get the functions to calculate when called from a
worksheet.

Thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default UDFs Worksheet Level

The UDFs should be in a standard module, not in a sheet module. In VBA: InsertModule

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Floyd Bates" wrote in message ups.com...
| All:
|
| Is it possible to use UDFs in a worksheet's code section? If so, how?
|
| I can't seem to get the functions to calculate when called from a
| worksheet.
|
| Thanks in advance.
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default UDFs Worksheet Level

Hi Floyd,

Why would you want to put a udf in a sheet module?

As a rule of thimb, use the worksheet module only for worksheet event code.



---
Regards,
Norman



"Floyd Bates" wrote in message
ups.com...
All:

Is it possible to use UDFs in a worksheet's code section? If so, how?

I can't seem to get the functions to calculate when called from a
worksheet.

Thanks in advance.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default UDFs Worksheet Level

My boss wants to have each worksheet as a standalone entity, so that
others can move the worksheets into their workbooks without having to
import/export a VBA module.

Barring rules of thumb, is it possible?





Norman Jones wrote:
Hi Floyd,

Why would you want to put a udf in a sheet module?

As a rule of thimb, use the worksheet module only for worksheet event code.



---
Regards,
Norman



"Floyd Bates" wrote in message
ups.com...
All:

Is it possible to use UDFs in a worksheet's code section? If so, how?

I can't seem to get the functions to calculate when called from a
worksheet.

Thanks in advance.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default UDFs Worksheet Level

Hi Floyd,

Try, instead, putting your udf's in an addin.


---
Regards,
Norman



"Floyd Bates" wrote in message
ups.com...
My boss wants to have each worksheet as a standalone entity, so that
others can move the worksheets into their workbooks without having to
import/export a VBA module.

Barring rules of thumb, is it possible?





Norman Jones wrote:
Hi Floyd,

Why would you want to put a udf in a sheet module?

As a rule of thimb, use the worksheet module only for worksheet event
code.



---
Regards,
Norman



"Floyd Bates" wrote in message
ups.com...
All:

Is it possible to use UDFs in a worksheet's code section? If so, how?

I can't seem to get the functions to calculate when called from a
worksheet.

Thanks in advance.




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
How to Define a named Formula at the Worksheet level? RPJ Excel Worksheet Functions 2 October 22nd 06 05:11 PM
Using macro to convert single level BOM to Multi Level BOM andrew_chong Excel Programming 0 February 7th 06 08:57 PM
macro to remove worksheet-level passwords DavidH[_2_] Excel Programming 5 January 19th 06 03:39 AM
Duplicating worksheet-level names jmg092548 Excel Discussion (Misc queries) 5 August 14th 05 11:11 PM
Why, when I create workbook-level name does it jump it to Sheet-level ? Charles Jordan Excel Programming 1 November 5th 03 08:43 PM


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