Hi I am a newbie to this but this is my problem.
This is the problem line after testing each line out, the error is caught here.
Worksheets("OS for UK").Range(globalOSlastcolumn & row).Formula = "=sum(" & x & ")"
x is a long line cells and is declared as a string:
F7,L7,R7,X7,AD7,AJ7,AP7,AV7,BB7,BH7,BN7,BT7,BZ7,
CF7,CL7,CR7,CX7,DD7,DJ7,DP7,DV7,EB7,EH7,EN7,ET7,
EZ7,FF7,FL7,FR7,FX7,GD7,GJ7
This gives me an error.
I have replaced with this line:
Worksheets("OS for UK").Range(GP7).Formula = "=sum(" & " F7,L7,R7,X7,AD7,AJ7,AP7,AV7,BB7,BH7,BN7,BT7,BZ7,CF7,CL7,CR7,CX7,DD7,DJ7,DP7,DV7,EB7,EH7,EN7,ET7,EZ7,FF7,FL7,FR7,FX7,GD7,GJ7 " & ")"
still error. Then i try this:
Worksheets("OS for UK").Range(GP7).Formula = "=sum(" & " F7,L7,R7" & ")" and its ok. I am just trying to test where the problem is.
Now I think its because of the long list of cells thats causing this. Do u have such experiences and how to solve this? Becasuse each cell for me is important, as it sums the total quantity of a product for me in each purchase order.
Actually i dont recall facing this problem previously. Could it be that after Microsoft updated their excel, that i lack something?
Lost dont know how to solve. If u can help me would be great thanks alot
cheers
jus
This is the problem line after testing each line out, the error is caught here.
Worksheets("OS for UK").Range(globalOSlastcolumn & row).Formula = "=sum(" & x & ")"
x is a long line cells and is declared as a string:
F7,L7,R7,X7,AD7,AJ7,AP7,AV7,BB7,BH7,BN7,BT7,BZ7,
CF7,CL7,CR7,CX7,DD7,DJ7,DP7,DV7,EB7,EH7,EN7,ET7,
EZ7,FF7,FL7,FR7,FX7,GD7,GJ7
This gives me an error.
I have replaced with this line:
Worksheets("OS for UK").Range(GP7).Formula = "=sum(" & " F7,L7,R7,X7,AD7,AJ7,AP7,AV7,BB7,BH7,BN7,BT7,BZ7,CF7,CL7,CR7,CX7,DD7,DJ7,DP7,DV7,EB7,EH7,EN7,ET7,EZ7,FF7,FL7,FR7,FX7,GD7,GJ7 " & ")"
still error. Then i try this:
Worksheets("OS for UK").Range(GP7).Formula = "=sum(" & " F7,L7,R7" & ")" and its ok. I am just trying to test where the problem is.
Now I think its because of the long list of cells thats causing this. Do u have such experiences and how to solve this? Becasuse each cell for me is important, as it sums the total quantity of a product for me in each purchase order.
Actually i dont recall facing this problem previously. Could it be that after Microsoft updated their excel, that i lack something?
Lost dont know how to solve. If u can help me would be great thanks alot
cheers
jus