Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Calling functions in different modules

Using Excel 2000, I have created an add-in (VB_Custom_Functions.xla)
that contains four modules. When I call a function in one module (say
Module 4), how can I make that function call another function in a
different module (say Module 2)?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 65
Default Calling functions in different modules

From module 4, you can call the name of the function directly, OR, you can
preface it with Module2.NameofFunction (parameters)

http://HelpExcel.com

"CR" wrote:

Using Excel 2000, I have created an add-in (VB_Custom_Functions.xla)
that contains four modules. When I call a function in one module (say
Module 4), how can I make that function call another function in a
different module (say Module 2)?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Calling functions in different modules

If they are Public functions they will be accessible to all modules in the
project. However, there is the potential for confusion if 2 functions in
different modules have the same name: if you need to resolve any conflicts
like this, use ModuleName.FunctionName

"CR" wrote:

Using Excel 2000, I have created an add-in (VB_Custom_Functions.xla)
that contains four modules. When I call a function in one module (say
Module 4), how can I make that function call another function in a
different module (say Module 2)?


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
Calling Add-In subroutines from other modules sclark Excel Programming 6 February 3rd 04 05:45 PM
calling modules Pedro Excel Programming 1 November 13th 03 11:15 AM
variable calling in different modules. russell Excel Programming 2 October 24th 03 04:17 AM
Calling certain functions within VBA Ron de Bruin Excel Programming 0 August 11th 03 10:32 PM
Calling VBA functions from a xll Kim[_8_] Excel Programming 2 August 3rd 03 11:48 AM


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