Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Aloha,
Im in the progress of learning VBA I have created some simple vb functions but Im woundering how I inser standard excel function in m "home made function". In my function called funcBatch I divide the weiht with 50 and get th result 104,9. funcBatch = (dblWeight / 50) Now I want to use the CEILING function to get the result to 105. But how Can I do this in the VBA code? funcBatch = ceiling((dblWeight / 50);1) dosent seems to work -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() The worksheet functions which can be accessed (and not all of them can) need to be qualified with the WorksheetFunction object - so to use ceiling you should write : WorksheetFunction.Ceiling Rgds Rog -----Original Message----- Aloha, Im in the progress of learning VBA I have created some simple vba functions but Im woundering how I inser standard excel function in my "home made function". In my function called funcBatch I divide the weiht with 50 and get the result 104,9. funcBatch = (dblWeight / 50) Now I want to use the CEILING function to get the result to 105. But how Can I do this in the VBA code? funcBatch = ceiling((dblWeight / 50);1) dosent seems to work. --- Message posted from http://www.ExcelForum.com/ . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot Tables - standard Data Field function | Excel Discussion (Misc queries) | |||
Does anyone know if excel has a function to calculate standard er. | Excel Worksheet Functions | |||
Which function to determine 1 and 2 standard deviation? | Excel Worksheet Functions | |||
What is the function to calculate standard errors of the mean? | Excel Worksheet Functions | |||
Standard Error | Excel Worksheet Functions |