How do I find column values using vba please.
How do I find column values using vba please.
Hi its done like this:
Regards,![]()
Sub SumIt() Range("E1").Select ''''select the cell where you would like the results ActiveCell.FormulaR1C1 = "=SUM(C[-4])" ''''this example says that E1 will = the sum of a column -4 away ''''so we start at E -1=D -2=C etc if you took away the - then the End Sub ''''result would be the sum of column I
Simon
Last edited by Simon Lloyd; 11-01-2006 at 01:53 AM.
I would just use
Activecell.column
This will return the number of the column starting from 1 for A, 2 for B etc
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks