Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
General/Standard module:
VBAProject\Modules\Module1 the one you get when you do Insert=Module -- Regards, Tom Ogilvy "JCDW" wrote in message ... Obviously I'm a neophyte. What is a 'standard' module? I've been entering these into VBAProject\MS Excel Objects\Sheet1 (Sheet1) and into VBAProject\Modules\Module1. Not worksheet code use a standard module. ShowSum will work as coded. CubeRoot: Function CubeRoot(num As Double) As Double ' returns the cube root of a number CubeRoot = num ^ (1 / 3) End Function needs an argument -- Gary's Student gsnu200703 "JCDW" wrote: In both Excel 2000 and 2007 when I enter the following functions on a worksheet module (or the Excel obect page 'behind' the worksheet), I am unable to execute (or call) on the worksheet. I get the error, [ #NAME? ]. Sub ShowSum() Sum = 1 + 1 MsgBox "The answer is " & Sum End Sub Function CubeRoot() ' returns the cube root of a number CubeRoot = num ^ (1 / 3) End Function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How does a module of VB work in a Worksheet? | Excel Worksheet Functions | |||
CLASS MODULE & SIMPLE MODULE | Excel Discussion (Misc queries) | |||
Calling worksheet functions from within a module | Excel Programming | |||
Calling worksheet module from other module. | Excel Programming | |||
Run worksheet module code from workbook module? | Excel Programming |