Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Populate a column with a month end data
Hello, I am using Excel 2002 and I am wondering if this is possible. I get a daily report from our main frame exporting data in Excel. What I want to do is have a macro button that will put the month ending data on the last column. Now I may get about 200 rows of data or 300 rows of data depending upon the months activity. For example I will have a dialog box pop up after I press the macro button requesting what is the month end (10/31/2005) then on the last rows will show 10/31/2005 depending upon the size of the data exported. Is this possible? Thank you in advance. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Populate a column with a month end data
maybe something like this. just substitute the sheetname and the column you
need. i used sheet1 and column B in this example this would sum everything from B2 to the last row in column B and put the total in the next row. Sub test() lastrow = Worksheets("Sheet1").Cells(Rows.Count, "B").End(xlUp).Row Range("B" & lastrow + 1).Formula = "=sum(B2:B" & lastrow & ")" End Sub -- Gary "Alex Martinez" wrote in message ... Hello, I am using Excel 2002 and I am wondering if this is possible. I get a daily report from our main frame exporting data in Excel. What I want to do is have a macro button that will put the month ending data on the last column. Now I may get about 200 rows of data or 300 rows of data depending upon the months activity. For example I will have a dialog box pop up after I press the macro button requesting what is the month end (10/31/2005) then on the last rows will show 10/31/2005 depending upon the size of the data exported. Is this possible? Thank you in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
populate month-yyyy when compare 2 cells | Excel Worksheet Functions | |||
Populate days of the month in a column by checking on date | Excel Worksheet Functions | |||
Populate column based on data in other cells | Excel Discussion (Misc queries) | |||
Populate a column of data with a formula using a drop down list | Excel Discussion (Misc queries) | |||
how to populate a 3rd column with with data from 1st or 2nd colum | Excel Discussion (Misc queries) |