Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I was trying to use a worksheet function in the VBA module and it isn't working. I type Dim x as double x = Application.Int(4.03) and I get an error. Are we unable to use some worksheet functions in VBA? Thanks for your help |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Jeff,
Just take off the "Application" part. Like this: Dim x As Double x = Int(4.03) Mark "Jeff" wrote: Hi, I was trying to use a worksheet function in the VBA module and it isn't working. I type Dim x as double x = Application.Int(4.03) and I get an error. Are we unable to use some worksheet functions in VBA? Thanks for your help |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
INT is builtin to VBA, so the worksheet function isn't available. Use
x=int(4.03) "Jeff" wrote in message ... Hi, I was trying to use a worksheet function in the VBA module and it isn't working. I type Dim x as double x = Application.Int(4.03) and I get an error. Are we unable to use some worksheet functions in VBA? Thanks for your help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Is there a function to copy an entire worksheet? | Excel Worksheet Functions | |||
Setting Cell Number Format With A Worksheet Function | Excel Worksheet Functions | |||
Paste function is greyed out in the toolbar and I can't use ctl V - worksheet won't allow pasting | Excel Discussion (Misc queries) | |||
Is there a worksheet function that will... | Excel Worksheet Functions | |||
Automatically up date time in a cell | Excel Discussion (Misc queries) |