Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compile Error, Sub or Function not defined

Status
Not open for further replies.

OOP

Programmer
Feb 5, 2001
94
SG
Hi,

I'm using RoundDown function in Visual Basic with Excel worksheets but when i run the program, it prompts me a Compile Error. Is it because RoundDown is not supported in VB. Have changed to Floor but still the same problem..
Please help.Thanks.
 
use F2 (object model shortcut) and search on the data members for the APPLICATION.WORKSHEETFUNCTION class - this will tell you which formulae are available to VBA

Rgds, Geoff

"Three things are certain: Death, taxes and lost data. Guess which has occurred"

Please read FAQ222-2244 before you ask a question
 
Thanks. Geoff.
Actually i did not include the WorksheetFunction before RoundDown :p
Thanks again.
 
That may be your problem then ;-)

Rgds, Geoff

"Three things are certain: Death, taxes and lost data. Guess which has occurred"

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top