Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate subtotals from Access to Excel

Status
Not open for further replies.

dani75

Programmer
Feb 1, 2006
2
AU
Hi!

I'm programming an Access application which calculates the subtotal of a range in a Excel Worksheet.

The problem is that when I make a subtotal of selected cells, the selection doesn't change. If I realize that from Excel it works but If I do it from Access the range is not updated.

The code that I use is:

Selection.Subtotal GroupBy:=6, Function:=xlSum, TotalList:=Array(5), replace:=True, PageBreaks:=False, SummaryBelowData:=True

Please help me!

Thank you!

Dani.
 
What do you mean by...

"the selection doesn't change"

??? Skip,
metzgsk@voughtaircraft.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top