Mark_richardson28
New Member
- Joined
- Sep 29, 2006
- Messages
- 36
As part of my spreadsheet i need the macro to calculate whether the sum of 6 text boxes = 1. If not i need it to alert the user to check their input. I have tried
But it doesn't seem to like what i have.
Any suggestions?
Many thanks
Code:
If Me.txttas + Me.txtooh.Value + Me.txtengaged.Value + Me.txtother.Value + Me.txtrecycled.Value + Me.txtclosed.Value <> Me.txtprompts.Value Then
Call BadInput("nocompute"): Exit Sub
End If
But it doesn't seem to like what i have.
Any suggestions?
Many thanks