Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default Function Call Specified at Run Time rather than Compile Time?

I want to call a function which is specified at call time rather than
compile time.

In other words I need to do something like
Call FunctionNamed(X)( Arg1, Arg2,...)
which would involk the Function Named "X" with the associated arg list.

Is there a way to do this in VBA?
Thanks,
Mac Lingo


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Function Call Specified at Run Time rather than Compile Time?

sFuncName = "MyMacro"
Application.Run sFuncName, arg1, arg2

--
Regards,
Tom Ogilvy


"Mac Lingo" wrote in message
ink.net...
I want to call a function which is specified at call time rather than
compile time.

In other words I need to do something like
Call FunctionNamed(X)( Arg1, Arg2,...)
which would involk the Function Named "X" with the associated arg list.

Is there a way to do this in VBA?
Thanks,
Mac Lingo




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
Macro / function text time to 24hr excel time passed midnight fortotaling hr's Russmaz Excel Worksheet Functions 2 March 6th 09 04:58 AM
How do I call current computer time to a cell? Carol G. Excel Worksheet Functions 9 November 14th 08 04:37 AM
verify use of TIME Function, Find Quantity Level compare to time-d nastech Excel Discussion (Misc queries) 9 July 11th 07 01:58 PM
Function to convert Time String to Time Andibevan Excel Worksheet Functions 6 August 19th 05 01:19 PM
Compile-time Error Handler Mark Repsher Excel Programming 1 February 9th 04 07:08 PM


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