Export to Excel Macro

jtmillington

New member
Local time
Today, 13:26
Joined
May 1, 2014
Messages
1
I have attached my current code to format the data and add variance, percentage change and explanation requirements. What I'm looking to do is also add a total formula at the bottom for columns E & F for the first sheet created. I'm just unsure of what the code is to have is skip a row at the bottom of the data and sum.

This is all in access 2010 - Thanks for your help!
 

Attachments

You may want to try:

Code:
Dim lRow as Long

lRow = Cells(Rows.Count, "A").End(xlUp).Row + 2
This will give you the cell 2 rows below the last used row.
Then you can use lRow to target your desired cell and set its '.Formula' :)
 

Users who are viewing this thread

Back
Top Bottom