We help IT Professionals succeed at work.
Get Started

Calculate totals from highlighted cell in Excel file from ms access

Last Modified: 2016-02-11
I have an access query that I output to an excel spreadsheet.  When the excel file opens there is code in Access the does some formatting - bold text, auto size etc.

This is a report that shows all the vendor invoices.  The CFO would like to be able to highlight cells of the report yellow for the invoices he is thinking of paying.  So as he changes the cell yellow he would like to have a summary cell at the top that shows the amount going up as he highlights the cells.

He has to see what he can pay with current cash flow.

Didn't know the best way to do this.

I have tried to do the export from access to a .xtml template but could not get it to work - I don't think you can export to a template macro enabled.

I found some excel code that puts in a function formula in a module - when you highlight a cell yellow it will sum that cell.  So I thought about having code in access to create a new module with the function in excel.

Have not found a way to do this.

So not sure the best way to proceed?

Any suggestions?

Watch Question
MIS Liason
Most Valuable Expert 2012
This problem has been solved!
Unlock 4 Answers and 11 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE