Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What is the correct way to define a function that can be plugged
into any spreadsheet cell as a formula?? I defined a function as follows: Public Function DoMyStuff () importantData = Sheet1.Range("A1").Value importantData = importantData * 10 DoMyStuff = importantData ' Return a value End Function I then plugged my function into cell "B1" as follows: =DoMyStuf() Okay, now I noticed that when anybody edits the contents of cell "A1" that my "DoMyStuff" is not getting called again. Do I need some code in my "DoMyStuff" function to detect if the contents of cell "A1" changed?? Thank you! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Getting #VALUE in cells with User Defined Functions | Excel Programming | |||
Using User-Defined Functions in Cells | Excel Programming | |||
Using User-Defined Functions in Cells | Excel Programming | |||
Using User-Defined Functions in Cells | Excel Programming | |||
User Defined Functions - Help Text - Make it Easy for the User | Excel Programming |