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

Hi all ...

Probably a dumb question ...

Is it possible to directly execute a macro or a VBA program from a
built-in function?

I spose in the most simplest form a cell formula might be something
like:

=if(A1="TESTING VALUE", macro_name, VBA_procedure_name)

--
Regards Luke.
-----
There are 10 types of people in this world
Those that understand binary and those that don't
-----


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Macros andfunctions

Hi
yes it is possible if this macro is a Function (and only returns a value)

--
Regards
Frank Kabel
Frankfurt, Germany
"Luke Vogel" <not@_real_address schrieb im Newsbeitrag
...
Hi all ...

Probably a dumb question ...

Is it possible to directly execute a macro or a VBA program from a
built-in function?

I spose in the most simplest form a cell formula might be something
like:

=if(A1="TESTING VALUE", macro_name, VBA_procedure_name)

--
Regards Luke.
-----
There are 10 types of people in this world
Those that understand binary and those that don't
-----




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Macros andfunctions

Now that is curious ... in a previous post a similarly question got a
negative response.

Any chance of a more detailed example?

Thanks

Luke.
----------------------------------------
"Frank Kabel" wrote in message
...
Hi
yes it is possible if this macro is a Function (and only returns a value)

--
Regards
Frank Kabel
Frankfurt, Germany
"Luke Vogel" <not@_real_address schrieb im Newsbeitrag
...
Hi all ...

Probably a dumb question ...

Is it possible to directly execute a macro or a VBA program from a
built-in function?

I spose in the most simplest form a cell formula might be something
like:

=if(A1="TESTING VALUE", macro_name, VBA_procedure_name)

--
Regards Luke.
-----
There are 10 types of people in this world
Those that understand binary and those that don't
-----






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
weird saving of a document with macros resulting with macros being transfered to the copy alfonso gonzales Excel Programming 0 December 12th 04 09:19 PM
Open workbook-macros enabled, opening another with macros George J Excel Programming 5 September 17th 04 02:07 PM
Macro Size Limit / open macros with macros? andycharger[_7_] Excel Programming 6 February 13th 04 02:00 PM
Macros not appearing in the Tools Macro Macros list hglamy[_2_] Excel Programming 5 October 24th 03 09:10 AM
Suppress the Disable Macros / Enable Macros Dialog Shoji Karai Excel Programming 5 September 24th 03 03:10 AM


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