LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
DMB DMB is offline
external usenet poster
 
Posts: 14
Default Excel and VBA how to call a procedure from an excel "cell"

Hey thanks for the information. But! I can find the insert function dialog
box but I can't find out how to insert and write functions Am I supposed to
do that in the VBA environment?

Thanks, You must have a million questions to answer!



"Gary''s Student" wrote:

You can do it if your VBA code is a function. If you can somehow enclose
your code in a UDF, then the UDF can be used in the woorkshhet.


See my posting earlier today w.r.t. Using VBA Functions in a worksheet.
--
Gary''s Student


"DMB" wrote:

Is there a way to call a procedure that I have already written in vba from a
cell. For instance, can I put something like the following into a cell

Call CopyFunctionToAdjacentCell()


This is the VBA Code that I am using right now. It works great. If I could
only cut and paste it into the cell I would be set.
Cells(4 + StartRow, 4) = "'" & Cells(4 + StartRow, 2).Formula

Is thee a way to accomplish the same thing within Excel?
=A1.Formula ???

Problem is that I always get the result on the equation.

 
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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Help!!! Enter "7" in a cell and Excel changes the "7" to "11" immediately!!! [email protected] Excel Discussion (Misc queries) 3 January 5th 07 02:18 PM
convert "15000" to "Fifteen thousand" in excel cell? anurag Excel Worksheet Functions 1 May 4th 06 07:58 AM
how can I make an excel cell "mark" or "unmark" when clicked on? Rick Excel Discussion (Misc queries) 6 January 8th 06 10:15 PM
bizarre "invalid procedure call" error PatFinegan[_14_] Excel Programming 11 July 13th 04 07:56 PM


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