Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using a form to enter values into cells in a column. The number o
cells varies each time the template is used. I need to select the range of cells, calculate the total and read tha total into another cell. I know how to select a fixed range but the problem I have is how t select the range when the number of cells varies. Hope this makes sense. Can anyone help? Geof -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
geoff
to find last used cell in column A looks from buttom row of spread sheet, finding first cell with an entr iun column a R = Cells(Rows.Count, "a").End(xlUp).Row Range("a1:a" & R).Select or looks from first row of spreadsheet, finding 1st blanl cell in colum a R = Cells(1, "a").End(xlDown).Row Range("a1:a" & R).Selec -- Message posted from http://www.ExcelForum.com |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Geoff
Sub selectrange1() 'from activecell in any column to bottom of used range in column including blanks Range(ActiveCell, Cells(Rows.Count, ActiveCell.Column).End(xlUp)).Select End Sub Sub SelectDown() 'to first blank row in active column Range(ActiveCell, ActiveCell.End(xlDown)).Select End Sub Gord Dibben Excel MVP On Sun, 29 Feb 2004 16:46:16 -0600, geoff wrote: I am using a form to enter values into cells in a column. The number of cells varies each time the template is used. I need to select the range of cells, calculate the total and read that total into another cell. I know how to select a fixed range but the problem I have is how to select the range when the number of cells varies. Hope this makes sense. Can anyone help? Geoff --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
calculate values in an unlimited range of cells in a column WITHOUTalso calculating values that had previously been filtered AGAINST? | Excel Discussion (Misc queries) | |||
Best-fit column based on a cell range | Excel Discussion (Misc queries) | |||
cell column number for the max value of a range of numbers | Excel Discussion (Misc queries) | |||
Is there any way of calculating a running total within a single cell in a column | New Users to Excel | |||
Next cell in a range, by row not column? | Excel Programming |