Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to use the Roundup worksheet function in a VBA formula and I'm
getting a "Compile Error: Sub or Function not defined". I thought I should be able to use this function in VBA. Any help would be greatly appreciated. Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This works for me:
Dim dResult As Double dResult = Application.WorksheetFunction.RoundUp(Range("A1"). Value, 2) In article , dkaydkay wrote: I'm trying to use the Roundup worksheet function in a VBA formula and I'm getting a "Compile Error: Sub or Function not defined". I thought I should be able to use this function in VBA. Any help would be greatly appreciated. Thanks! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
demo'd from the immediate window:
? application.Roundup(123.456,1) 123.5 works for me. -- Regards, Tom Ogilvy "dkaydkay" wrote: I'm trying to use the Roundup worksheet function in a VBA formula and I'm getting a "Compile Error: Sub or Function not defined". I thought I should be able to use this function in VBA. Any help would be greatly appreciated. Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run-time error '50290': Application-defined or object-defined erro | Excel Discussion (Misc queries) | |||
Application-Defined or object defined error 1004 When ran on exel97 but not 2003 | Excel Programming | |||
Copying A Range of Cells From one Sheet to Another - Error Application Defined or Object Defined | Excel Programming | |||
Runtime error 1004- application defined or object defined erro | Excel Programming | |||
Runtime error 1004- application defined or object defined erro | Excel Programming |