Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Call Sub from Function?

Is it possible, and if so, what is the syntax? I set up a simple test case,
and the sub call executes correctly when I step through the function but
does not work when the function is put into a cell formula.

Thanks,
George


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Call Sub from Function?


Hello George,

If you are creating a User Defined Function (UDF) to work as a
worksheet formula, the first rule is you can not modify another cell on
the worksheet. You may look but not touch. If your Sub is modifiying a
cell, that's the problem. You can change a cell in VBA on the worksheet
with no problem, but you can't change a cell on the worksheet if the
function is a UDF.

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=487522

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
Is there a do not call function? pokdbz Excel Discussion (Misc queries) 2 December 27th 07 04:00 PM
how i can call the function reneabesmer Excel Worksheet Functions 2 May 2nd 05 12:13 PM
call a function from VBA Adam Excel Programming 2 March 15th 05 10:17 AM
Function Call Phil Hageman Excel Programming 4 October 9th 03 04:32 PM
call function sirron Excel Programming 1 August 26th 03 03:39 PM


All times are GMT +1. The time now is 09:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"