• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Simple add function not working! Missing something [SOLVED]

Hello all,

Simple problem here's the Code
Code:
Worksheets("Finance").Cells(lng2, 3) = Worksheets("Finance").Cells(lng2, 3).Value + Worksheets(RC_Name).Cells(lngI, 3).Value

Run Time Error: 13
It's not adding? 'Add Watch' has error <Type mismatch> Variant/Integer.

I'm trying to add multiple values from Worksheets(RC_Names).Cells(lngI,2)value, where as "RC_Names" & "lngI" are variables and change

I've also tried
Code:
 Worksheets("Finance").Cells(lng2, 3).Value = Worksheets("Finance").Cells(lng2, 3).Value + Worksheets(RC_Name).Cells(lngI, 3).Value
to no avail.

Is this enough for someone to tell me what I'm doing wrong??

Thanks
 
Back
Top