Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Getting Application.Sum to act like =SUM

Hi there,

I am attempting to create a VBA subroutine which will perform the work
of
=SUM(Range)

The following:

MySum = Application.Sum(Cells(Master_New_Entry_Row, 2), _
Cells(Master_New_Entry_Row, 6))

....works just fine except for one flaw. With the =SUM excel function,
non-numeric columns get ignored and the function still sums the
numeric columns within the given range. Using "Application.Sum" they
don't. If there is a non-numeric column in the above range, the
function errors out!

Is there anyone who can tell me a way to make Application.Sum act like
=SUM without having to verify each and every column as numeric first?

Thank you,
Mike Cooper
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
VBA-Application Gaurav Jindal Excel Discussion (Misc queries) 2 November 20th 06 09:50 AM
Application TullaOlsen Excel Discussion (Misc queries) 0 March 16th 06 07:57 PM
Application Look Daniell Excel Discussion (Misc queries) 0 September 26th 05 10:48 PM
Application.run J cs via OfficeKB.com New Users to Excel 3 December 30th 04 04:46 PM
What's this? (Application.Run) Karl Thompson Excel Programming 1 July 10th 03 07:46 PM


All times are GMT +1. The time now is 03:24 PM.

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

About Us

"It's about Microsoft Excel"