LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to do Selection.Subtotal in VBScript/ASP ?

Anyone with experience in these matters? I am trying to group an Excel
sheet from VBScript.

No trouble doing it from a macro...

Selection.Subtotal GroupBy:=1, Function:=xlSum, TotalList:=Array(5, 6,
7, 8), Replace:=False, PageBreaks:=False, SummaryBelowData:=True

but I can't get it to work in VBS. Specifically, this does not work,
even though it should - intrinsic constant xlSum is replaced with its
value...

objXL.Selection.Subtotal 1, -4167, Array(5, 6, 7, 8), False, False,
True

Web search shows that others have had the same problem, but no solution
given. References to an April, 2005 article in Windows Scripting
Solutions, but I don't have that.

Thanks for any assistance!

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subtotal To Include Item Description On Subtotal Line Tickfarmer Excel Discussion (Misc queries) 2 February 23rd 10 07:56 PM
SUBTOTAL - dynamic selection Totteridge Ram Excel Worksheet Functions 3 December 17th 08 01:09 AM
Subtotal line selection Jenny Excel Discussion (Misc queries) 1 April 13th 05 02:21 PM
Trying to Sort and Subtotal with Vbscript in Excel Jeremy Smith[_2_] Excel Programming 1 March 6th 04 04:36 PM
How to do selection.subtotal in VBScript/ASP ? Wes[_5_] Excel Programming 3 December 9th 03 09:43 PM


All times are GMT +1. The time now is 02:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"