Subtotal VBA Not Working (1 Viewer)

pastelrain

Registered User.
Local time
Yesterday, 22:47
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
 

Ranman256

Well-known member
Local time
Today, 01:47
Joined
Apr 9, 2015
Messages
4,337
Is this an Excel question in the Access forum?
 

pastelrain

Registered User.
Local time
Yesterday, 22:47
Joined
Jul 12, 2016
Messages
23
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

Top Bottom