Can ayone see whats wrong with this; I keep getting "variable not defined" with the variable Allboards high-lighted, yet It seems to me I have defined it!!!
VB Code:
Public Function calcBoards() Dim Allboards As Single Dim Brd1 As Single, Brd2 As Single, Brd3 As Single, Brd4 As Single, Brd5 As Single, Brd6 As Single Brd1 = Val(Text4.Text) Brd2 = Val(Text7.Text) Brd3 = Val(Text8.Text) Brd4 = Val(Text9.Text) Brd5 = Val(Text10.Text) Brd6 = Val(Text11.Text) Allboards = Brd1 + Brd2 + Brd3 + Brd4 + Brd5 + Brd6 calcBoards = Allboards End Function
Any quick help please :afrog: