Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ROUNDing on a MAC - conversion error


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

--
Loka
-----------------------------------------------------------------------
Lokai's Profile: http://www.excelforum.com/member.php...fo&userid=2479
View this thread: http://www.excelforum.com/showthread.php?threadid=38358

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default ROUNDing on a MAC - conversion error

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

"Lokai" wrote in
message ...

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 not
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 no
response)


--
Lokai
------------------------------------------------------------------------
Lokai's Profile:
http://www.excelforum.com/member.php...o&userid=24796
View this thread: http://www.excelforum.com/showthread...hreadid=383581



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default ROUNDing on a MAC - conversion error


Thank you Mike, that did the trick

--
Loka
-----------------------------------------------------------------------
Lokai's Profile: http://www.excelforum.com/member.php...fo&userid=2479
View this thread: http://www.excelforum.com/showthread.php?threadid=38358

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
rounding error pkeegs Excel Discussion (Misc queries) 2 January 13th 10 07:53 AM
file conversion encoding error Kris Excel Discussion (Misc queries) 1 August 30th 08 06:00 AM
rounding error? Steve Excel Discussion (Misc queries) 5 June 1st 08 02:58 PM
Excel 2002 error in conversion CPA Jim Excel Discussion (Misc queries) 1 July 14th 07 12:35 PM
EXCEL HEX2DEC conversion error Jerry Excel Worksheet Functions 4 June 16th 05 03:48 AM


All times are GMT +1. The time now is 10:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"