473,320 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Excel subtotals in vb.net

I am creating an Excel spreadsheet using a query function in my vb code. This works fine. I can format the columns but dont know how to create subtotals and a grand total.
Thanks,

Richard
Nov 20 '05 #1
2 4354
Hello,

"Richard Grene" <rg****@s4si.com> schrieb:
I am creating an Excel spreadsheet using a query function
in my vb code. This works fine. I can format the columns
but dont know how to create subtotals and a grand total.


This is a VB.NET language ng. Your question is related to Excel automation.
Please turn to this ng:

news://news.microsoft.com/microsoft....el.programming

Please do not post in HTML format, use plain-text format instead.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2
On Sun, 7 Sep 2003 01:43:47 +0200, "Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote:

¤ Hello,
¤
¤ "Richard Grene" <rg****@s4si.com> schrieb:
¤ > I am creating an Excel spreadsheet using a query function
¤ > in my vb code. This works fine. I can format the columns
¤ > but dont know how to create subtotals and a grand total.
¤
¤ This is a VB.NET language ng. Your question is related to Excel automation.
¤ Please turn to this ng:
¤
¤ news://news.microsoft.com/microsoft....el.programming
Actually microsoft.public.dotnet.framework.interop would be more appropriate with respect to
automation questions with VB.NET.

Most Excel folks don't know or have any interest in .NET. ;-)
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Utada P.W. SIU | last post by:
Accurary, I just change the contenttype of the asp to "application/vnd.ms-excel" but my question is that, how to default the cell font to Arial? Now, it is defaulted to "Time News Roman", and...
11
by: Mr. Smith | last post by:
Hello all, My code can successfully open, write to, format and save several worksheets in a workbook then save it by a given name, close and quit excel. My problem is that if I try and do it...
5
by: Jonny | last post by:
Hello, I have created a button on my form which when pressed does the following : 1) Run a pre-defined Macro, which is picking up a query and running my data to excel. However, I need the...
2
by: Jody L. Whitlock | last post by:
I've gotten the COM Addin to work, my problem is this. I need to allow the user to select a range of cells (All in the same column) and then select my addin. My addin needs to pick up this range...
0
by: kieran | last post by:
Hi, I have an 'export to excel' button on my Datagrid. All works well except that on my Datagrid, I have sub total rows. The subtotal rows use colspan so that the subtotals are given above...
3
by: Greg | last post by:
I have a database that tracks the vacation time of each employee of the company that I work for. Everything works great and totals all of the vacation time that has been used. Could someone give me...
1
7 of 9
by: 7 of 9 | last post by:
Ok here is the situation: I have an Autoexec macro that does the following in order 1) Runs a set of queries(1-9) 2) Exports the final query to excel 3) Does some formatting (subtotals etc) 4)...
0
by: Taxman | last post by:
Windows XP, MS Office Excel 2003 If the tasks, I’m trying accomplish have been addressed previously (separately or in combination). Please, provide the links or keyword search to find them. I’ve...
2
by: =?Utf-8?B?SHV0dHk=?= | last post by:
I have searched the net but have been unable to find a solution to subtotaling in a gridview. I have a gridview that is bounded to sqldatasource where I would like to subtotal rows throughout the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.