ROUNDing on a MAC - conversion error

L

Lokai

ROUNDing on a MAC - error

If Round(c, 2) <> c Then c.Value = Round(c.Value, 2)

The macro above works fine in Windows but is hanging on a Macintosh.

Specifically I get an error "Compile Error: Sub or Function no
defined" when I use this Round function on a Mac - it thinks Round(x,2
is calling a sub or function.

Is there a way around this? (no pun intended)
I don't have easy access to Mac for testing.

(I did post at mrexcel but it has dropped to the 4th page with n
response
 
M

Mike Middleton

Lokai -

Current versions of Windows Excel have a newer version of VBA than current
versions of Mac Excel.

The current versions of Mac Excel do not have a VBA Round function.

Perhaps you could use application.worksheetfunction.round so that it will
work on both platforms.

If you need further advice about Mac issues, you may want to try the
microsoft.public.mac.office.excel newsgroup.

- Mike
www.mikemiddleton.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top