The AutoSum is a human shortcut and is meant to work that way. Any attempt to use it in VBA would also require the use of "selecting" and "sendkeys"...neither of which is efficient. Since macros work fastest without utilizing the sheet directly, best to do the work all in VBA.
There are many ways, all affected by your sheet design. If your column of values stands alone with empty cells all around, this will get you a sum in one line of code:
The red part could be substituted with a cell reference to indicate a cell you know will always be a part, like the first cell is always M1...
Bookmarks