Subtotal VBA Not Working

pastelrain

Registered User.
Local time
Today, 10:09
Joined
Jul 12, 2016
Messages
23
Hi,
Does anyone know why the subtotal code below would only work with one column instead of all? It only sums the last (total) column. It's almost as if it doesn't recognize the other columns can be summed. They are all in the same format (General).

Any help is appreciated!


Set tbl = xlWS.ListObjects.Add(xlSrcRange, rng, , xlYes)
tbl.TableStyle = "TableStyleMedium2"
tbl.ShowTotals = True
 
Is this an Excel question in the Access forum?
 
No, this is in Access VBA. I am exporting a spreadsheet and formatting it. Do you need to see the whole code?
 

Users who are viewing this thread

Back
Top Bottom