Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default Option Private Module

I'm using the Excel 4 REGISTER command to add argument descriptions to my
company's suite of UDFs and function categories to the Function Wizard
(thanks in no small part to Jan Karel Pieterse). To stop duplication of
these UDFs in the "User Defined" category (and 2 entries for each under "All"
category), I can put Option Private Module at the top of each module
containing my UDFs.

This is great but these UDFs have been around for while and other people
here will have coded all sorts of calls to them. What are the ramifications
of my making these modules private? Could there be backward-compatibility
problems with other people's code suddenly falling over? I know most people
use this type of call:
x = Application.Run("addin.xla!UDF",arg1,arg2) but there could be other
types in use.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Option Private Module

Yes, adding Option Private could potentially cause problems. One scenario is
if a reference has been set to project procedures in private modules will
not be visible, possibly other scenarios too.

UDF's should continue to work though, as would app.run.

I'm not sure which Excel4-Register method you are using but if you are using
the workaround developed by KeepItCool I don't think you should have any
issues with UDF's appearing duplicated in categories in the function list.
http://www.jkp-ads.com/articles/RegisterUDF01.asp

Regards,
Peter T


"Smallweed" wrote in message
...
I'm using the Excel 4 REGISTER command to add argument descriptions to my
company's suite of UDFs and function categories to the Function Wizard
(thanks in no small part to Jan Karel Pieterse). To stop duplication of
these UDFs in the "User Defined" category (and 2 entries for each under
"All"
category), I can put Option Private Module at the top of each module
containing my UDFs.

This is great but these UDFs have been around for while and other people
here will have coded all sorts of calls to them. What are the
ramifications
of my making these modules private? Could there be backward-compatibility
problems with other people's code suddenly falling over? I know most
people
use this type of call:
x = Application.Run("addin.xla!UDF",arg1,arg2) but there could be other
types in use.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default Option Private Module

Thanks but in fact he himself says this is a problem (the duplicated entries).

"Peter T" wrote:

Yes, adding Option Private could potentially cause problems. One scenario is
if a reference has been set to project procedures in private modules will
not be visible, possibly other scenarios too.

UDF's should continue to work though, as would app.run.

I'm not sure which Excel4-Register method you are using but if you are using
the workaround developed by KeepItCool I don't think you should have any
issues with UDF's appearing duplicated in categories in the function list.
http://www.jkp-ads.com/articles/RegisterUDF01.asp

Regards,
Peter T


"Smallweed" wrote in message
...
I'm using the Excel 4 REGISTER command to add argument descriptions to my
company's suite of UDFs and function categories to the Function Wizard
(thanks in no small part to Jan Karel Pieterse). To stop duplication of
these UDFs in the "User Defined" category (and 2 entries for each under
"All"
category), I can put Option Private Module at the top of each module
containing my UDFs.

This is great but these UDFs have been around for while and other people
here will have coded all sorts of calls to them. What are the
ramifications
of my making these modules private? Could there be backward-compatibility
problems with other people's code suddenly falling over? I know most
people
use this type of call:
x = Application.Run("addin.xla!UDF",arg1,arg2) but there could be other
types in use.




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
Option Private Module (for Object Modules) WCM Excel Programming 5 January 28th 09 04:57 PM
Option Private Module Smallweed Excel Programming 3 June 24th 08 02:38 PM
Improve method of calling a private function in a private module XP Excel Programming 1 April 30th 08 06:41 PM
Option Private Module RB Smissaert Excel Programming 5 April 4th 06 04:53 PM
Option Private Module not preventing cross project referencing seisman Excel Programming 2 July 29th 05 03:24 PM


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