Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following simplified code that represents my problem. When I run
the code from the VBA editor, or run the individual macros it works perfectly. But when I call Test() from a worksheet function the WriteIt macro generates a #Value error and the EraseIt macro does nothing at all. What am I doing wrong? Im useing Excel 2003. Function Test() As Boolean MsgBox ("Click OK to Write") Call WriteIt MsgBox ("Click OK to Erase") Call EraseIt End Function Sub WriteIt() Range("A1").Value = "Hello" End Sub Sub EraseIt() Range("A1").ClearContents End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I create a macro that works like the "find' function | Excel Discussion (Misc queries) | |||
LARGE function does not segregate between identical max values | Excel Discussion (Misc queries) | |||
Access connection works in Macro, not in user-defined Function | Excel Programming | |||
Inexplicable difference in row hiding speed - identical code, identical machines! | Excel Programming |