#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 73
Default Subtotal with tax

I have a query that I export from access to excel and would like to subtotal
each invoice listed on the sheet but also include the tax and grand total of
the invoice. Is this possible?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Subtotal with tax

Yes it can
I can help if you want to send me a copy of the workbook.



"Renee" wrote:

I have a query that I export from access to excel and would like to subtotal
each invoice listed on the sheet but also include the tax and grand total of
the invoice. Is this possible?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 73
Default Subtotal with tax

You can't just explain it to me, cause I am going to be exporting and doing
these totals on a weekly basis so I need to know how.

"Mike" wrote:

Yes it can
I can help if you want to send me a copy of the workbook.



"Renee" wrote:

I have a query that I export from access to excel and would like to subtotal
each invoice listed on the sheet but also include the tax and grand total of
the invoice. Is this possible?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Subtotal with tax

It will take vba code to do this. Do you know how to write code ? If it was
me instead of exporting it from access I would have excel pull the data I
needed.



"Renee" wrote:

You can't just explain it to me, cause I am going to be exporting and doing
these totals on a weekly basis so I need to know how.

"Mike" wrote:

Yes it can
I can help if you want to send me a copy of the workbook.



"Renee" wrote:

I have a query that I export from access to excel and would like to subtotal
each invoice listed on the sheet but also include the tax and grand total of
the invoice. Is this possible?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Subtotal with tax

I would set it up so that all you do is press a button.

"Renee" wrote:

You can't just explain it to me, cause I am going to be exporting and doing
these totals on a weekly basis so I need to know how.

"Mike" wrote:

Yes it can
I can help if you want to send me a copy of the workbook.



"Renee" wrote:

I have a query that I export from access to excel and would like to subtotal
each invoice listed on the sheet but also include the tax and grand total of
the invoice. Is this possible?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 73
Default Subtotal with tax

I can pull the data from Access that I need? Don't think I have heard of
that. I have entered some vba code but not created my own, I am just starting
to learn how to write it.

"Mike" wrote:

It will take vba code to do this. Do you know how to write code ? If it was
me instead of exporting it from access I would have excel pull the data I
needed.



"Renee" wrote:

You can't just explain it to me, cause I am going to be exporting and doing
these totals on a weekly basis so I need to know how.

"Mike" wrote:

Yes it can
I can help if you want to send me a copy of the workbook.



"Renee" wrote:

I have a query that I export from access to excel and would like to subtotal
each invoice listed on the sheet but also include the tax and grand total of
the invoice. Is this possible?

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Subtotal with tax

With a few changes you could use this. If you would send my the workbook I
could get you started. Its up to you.

Private Sub getDataFromAccess()
'Needs reference the Axtive X Library 2.0 or higher
Dim cnn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim sSQL As String, strConn
Dim rowNumber As Long

'C:\PathToYourMdb\Ilsa.mdb (Change)
strConn = "Provider=Microsoft.Jet.OLEDB.4.0; " & _
"Data Source=C:\PathToYourMdb\Ilsa.mdb;Persist Security Info=False"

'sSQL = "Replace with your query"
sSQL = "SELECT Field1, Field2 From TableName"

Set cnn = New ADODB.Connection
Set rs = New ADODB.Recordset

cnn.Open strConn
rs.Open sSQL, cnn, adOpenStatic, adLockOptimistic
rowNumber = 2 'Starting Row Number for data
Do While (Not rs.EOF)
Range("A" & rowNumber) = rs.Fields("Field1").Value
Range("B" & rowNumber) = rs.Fields("Field2").Value
rowNumber = rowNumber + 1
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
cnn.Close
Set cnn = Nothing
End Sub

"Renee" wrote:

I can pull the data from Access that I need? Don't think I have heard of
that. I have entered some vba code but not created my own, I am just starting
to learn how to write it.

"Mike" wrote:

It will take vba code to do this. Do you know how to write code ? If it was
me instead of exporting it from access I would have excel pull the data I
needed.



"Renee" wrote:

You can't just explain it to me, cause I am going to be exporting and doing
these totals on a weekly basis so I need to know how.

"Mike" wrote:

Yes it can
I can help if you want to send me a copy of the workbook.



"Renee" wrote:

I have a query that I export from access to excel and would like to subtotal
each invoice listed on the sheet but also include the tax and grand total of
the invoice. Is this possible?

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 73
Default Subtotal with tax

Wow, that sounds like it would take some time for me to figure out how to do.
I will have to look into it for later. For now can you help me with the code
for when the query is exported to excel?

"Mike" wrote:

I would set it up so that all you do is press a button.

"Renee" wrote:

You can't just explain it to me, cause I am going to be exporting and doing
these totals on a weekly basis so I need to know how.

"Mike" wrote:

Yes it can
I can help if you want to send me a copy of the workbook.



"Renee" wrote:

I have a query that I export from access to excel and would like to subtotal
each invoice listed on the sheet but also include the tax and grand total of
the invoice. Is this possible?

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Subtotal with tax

I can but trust me it would be easier for me if you send me a copy of the
workbook.


"Renee" wrote:

Wow, that sounds like it would take some time for me to figure out how to do.
I will have to look into it for later. For now can you help me with the code
for when the query is exported to excel?

"Mike" wrote:

I would set it up so that all you do is press a button.

"Renee" wrote:

You can't just explain it to me, cause I am going to be exporting and doing
these totals on a weekly basis so I need to know how.

"Mike" wrote:

Yes it can
I can help if you want to send me a copy of the workbook.



"Renee" wrote:

I have a query that I export from access to excel and would like to subtotal
each invoice listed on the sheet but also include the tax and grand total of
the invoice. Is this possible?

  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 73
Default Subtotal with tax

But then how do I do it for the rest of the time? As I would need to do this
once a week.

"Mike" wrote:

I can but trust me it would be easier for me if you send me a copy of the
workbook.


"Renee" wrote:

Wow, that sounds like it would take some time for me to figure out how to do.
I will have to look into it for later. For now can you help me with the code
for when the query is exported to excel?

"Mike" wrote:

I would set it up so that all you do is press a button.

"Renee" wrote:

You can't just explain it to me, cause I am going to be exporting and doing
these totals on a weekly basis so I need to know how.

"Mike" wrote:

Yes it can
I can help if you want to send me a copy of the workbook.



"Renee" wrote:

I have a query that I export from access to excel and would like to subtotal
each invoice listed on the sheet but also include the tax and grand total of
the invoice. Is this possible?



  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Subtotal with tax

I could set it up to pull in the data from the workbook that was exported
from access
Press the button and it will run.

"Renee" wrote:

But then how do I do it for the rest of the time? As I would need to do this
once a week.

"Mike" wrote:

I can but trust me it would be easier for me if you send me a copy of the
workbook.


"Renee" wrote:

Wow, that sounds like it would take some time for me to figure out how to do.
I will have to look into it for later. For now can you help me with the code
for when the query is exported to excel?

"Mike" wrote:

I would set it up so that all you do is press a button.

"Renee" wrote:

You can't just explain it to me, cause I am going to be exporting and doing
these totals on a weekly basis so I need to know how.

"Mike" wrote:

Yes it can
I can help if you want to send me a copy of the workbook.



"Renee" wrote:

I have a query that I export from access to excel and would like to subtotal
each invoice listed on the sheet but also include the tax and grand total of
the invoice. Is this possible?

  #12   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 73
Default Subtotal with tax

How do I go about sending you a copy of the workbook?

"Mike" wrote:

I could set it up to pull in the data from the workbook that was exported
from access
Press the button and it will run.

"Renee" wrote:

But then how do I do it for the rest of the time? As I would need to do this
once a week.

"Mike" wrote:

I can but trust me it would be easier for me if you send me a copy of the
workbook.


"Renee" wrote:

Wow, that sounds like it would take some time for me to figure out how to do.
I will have to look into it for later. For now can you help me with the code
for when the query is exported to excel?

"Mike" wrote:

I would set it up so that all you do is press a button.

"Renee" wrote:

You can't just explain it to me, cause I am going to be exporting and doing
these totals on a weekly basis so I need to know how.

"Mike" wrote:

Yes it can
I can help if you want to send me a copy of the workbook.



"Renee" wrote:

I have a query that I export from access to excel and would like to subtotal
each invoice listed on the sheet but also include the tax and grand total of
the invoice. Is this possible?

Reply
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
macro excel subtotal in subtotal GBO Excel Discussion (Misc queries) 2 November 29th 07 02:15 PM
pasting to subtotal lines without replacing hidden -non-subtotal l harleydiva67 Excel Discussion (Misc queries) 1 October 12th 06 06:02 PM
Bolding the subtotal lines automaticlly When using the Subtotal fu 06Speed6 New Users to Excel 2 October 5th 06 03:52 PM
copy subtotal value only, subtotal value can be vlookup by others BB Excel Discussion (Misc queries) 1 June 28th 06 11:10 PM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 01:46 PM


All times are GMT +1. The time now is 10:13 AM.

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

About Us

"It's about Microsoft Excel"