G
Guest
I have a spreadsheet that has a couple thousand lines of data. The first
column is a date field. I want to programmatically get a count of how many
lines there are for each day in a specified month. Not being very familiar
with the Excel object model, I need a little help. Logically, this is what I
want to do:
dim myArray(31) 'number of possible days in a month
dim myDay, myMonth as Integer
1) Select the entire region of data
2) For each row in the selection
3) if the month in the date column is equal to myMonth, then set myDay
variable to be the day in that date column field
4) increment myArray(myDay-1) by 1 '-1 is to accomodate 0-based array index
Can anyone help me get a start on this? Thanks!
column is a date field. I want to programmatically get a count of how many
lines there are for each day in a specified month. Not being very familiar
with the Excel object model, I need a little help. Logically, this is what I
want to do:
dim myArray(31) 'number of possible days in a month
dim myDay, myMonth as Integer
1) Select the entire region of data
2) For each row in the selection
3) if the month in the date column is equal to myMonth, then set myDay
variable to be the day in that date column field
4) increment myArray(myDay-1) by 1 '-1 is to accomodate 0-based array index
Can anyone help me get a start on this? Thanks!