Hi,
I have a whole bunch of sheets and they all structured the same way. The all contain: the name of my client in column a, the real amount of expenses in column B, the budget amount in column C and a line for the total. I also have a summary sheets containing the name of all my clients and I would like to add the total of each column on that sheet. I have tried to get the total for just one column but there is a problem with one line of code:
Range("A3").Offset(lSht, 1).Formula = "=(SUMIF('" & Worksheets(lSht).Name & "'!C[1], ""*Total*""," '"Worksheets(lSht).Name& "'!C[3])"
All my variables or declared and working fine since I use them elsewhere.
Can anyone help me?
Thank you
I have a whole bunch of sheets and they all structured the same way. The all contain: the name of my client in column a, the real amount of expenses in column B, the budget amount in column C and a line for the total. I also have a summary sheets containing the name of all my clients and I would like to add the total of each column on that sheet. I have tried to get the total for just one column but there is a problem with one line of code:
Range("A3").Offset(lSht, 1).Formula = "=(SUMIF('" & Worksheets(lSht).Name & "'!C[1], ""*Total*""," '"Worksheets(lSht).Name& "'!C[3])"
All my variables or declared and working fine since I use them elsewhere.
Can anyone help me?
Thank you