Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Visual Basic for Applications

Post new topic   Reply to topic
summing column
View previous topic :: View next topic  
Author Message
sirgeoff
Newbie


Joined: 06 Apr 2004
Posts: 2

PostPosted: Apr 7th, 2004 03:49 PM    Post subject: summing column Reply with quote

Is there anyone that could give me direction on summing a column such as D, from the cells first_day to last_day? I appreciate any help you could give.

last_day = subtotal_day - 1

For i = last_day To 1 Step -1



MsgBox "next day back is " & i

different_month_sum = DateDiff("m", CDate(Cells(i, 5).Value), CDate(Cells(i - 1, 5).Value))

If different_month_sum <> 0 Then
MsgBox "first day of the month =" & i
first_day = i

Exit For

End If
Next i
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Visual Basic for Applications All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic