Query Macros

avaltewarehous

New Member
Joined
Nov 8, 2012
Messages
38
Good evening,

I recently started at a new company, and they are using a rather cumbersome and time consuming spreadsheet system to complete a relatively simple task, and I would like to explore other routes for optimization of the process. The task is performed on a daily basis, and the object of the process is to reconcile the previous day's cash receipt and disbursement records between internal accounting records (from our database) and bank records. Currently, we use a query created in Showcase to retrieve all of the individual receipt/disbursement (r/d) records from the previous day for each of our (30?) bank accounts. Those records are dumped into an Excel sheet, and the user then creates a pivot table from the data to group the total receipts and disbursements (separately) by bank account number. Next, the summary info from the pivot table is transcribed (via direct human labor, no automation) into a second Excel workbook. This second workbook is created on a monthly basis, and contains 2 sheets for each bank account (60 sheets in total [2*30 accounts]): 1 for total daily receipts, 1 for total daily disbursements. Each sheet has a column which shows every day of that month along with the record of total daily receipts or disbursements (depending on which of the 2 sheets you are working in). It is in the column next to this date column where the user must manually transcribe the summary data from the pivot table each day - and with 60 sheets to enter each day, you can imagine how this process becomes time consuming very quickly.

My feeling is that the steps of dumping the data into an external workbook, creating the pivot table to summarize the data and manually transferring the summary data into the reconciliation workbook can all be eliminated, and that a macro can be created which automatically queries the table and returns the daily summary value into the desired cell. My issue is that I do not know how to embed a query into a macro in Excel. Please confirm my hypothesis, and, if there is a way, describe how it can be done. Thank you!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,221,813
Messages
6,162,126
Members
451,743
Latest member
matt3388

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top