View Single Post
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: Substraction code in MSFlex Grid

 
0
  #3
Jan 7th, 2009
Hi,

Try This :

  1. Dim i As Integer
  2. Dim TAmt As Currency
  3. TAmt = 0
  4. For i = 1 To Grd.Rows-1
  5. TAmt = TAmt + Val(Grd.TextMatrix(i, 8))
  6. Next
  7. TAmt = TAmt +Val(txtBudget.Text)
  8. MsgBox "Total Amount Is : " & Format(TAmt, "0.00")

Change names of your controls, and Column accordingly..

REgards
Veena
Last edited by QVeen72; Jan 7th, 2009 at 11:39 pm.
Reply With Quote