Macro Help PLEASE......

shabbacat

New Member
Joined
Nov 11, 2009
Messages
2
Hello people, I need your guidance.:)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
I am running reports from a system daily that gives me the information in a CSV. I then have to do loads of formatting to make it look presentable but have found the glory of Macros and I bloody love em... But have come across a few problems.<o:p></o:p>
<o:p></o:p>
I can set up the formatting but every time I run the report I can be getting a variable number of rows, I need to find out how I can create a macro to find the last row of data and then do Autosum on the next row down?? HELP....<o:p></o:p>
<o:p></o:p>
*NOTE: I am creating macros by recording the process, VBA scares me. If there is anyone in the Bham area who would fancy giving me a few lessons??<o:p></o:p>
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Code:
LastRow = Cells(Rows.Ciunt, "A").End(xlUp).Row

Cells(LastRow + 1, "A").Formula = "=SUM(A1:A" & LastRow & ")"
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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