Excel sum function IN VBA

S

Sobhani Hafiz

HI ,

Is it possible to use the excel sum function in VBA? I recorded a macro to
with Excel sum, Then I changed the row number and tried to run from VBA. It
seems that it didnt run.

Any help will be greatly appreciated.

Arefin
 
J

Jerry W. Lewis

Current versions will recognize
Application.Sum()
WorksheetFunction.Sum()
Application.WorksheetFunction.Sum()

Some older versions will only recognize
Application.Sum()

Jerry
 
T

Tom Ogilvy

Added comment:
Older versions being xl5 and xl95. WorksheetFunction was introduced in
xl97.
 

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