A
Anders Eriksson
Hello!
I want to add a formula to a cell the formula is:
=TEXT(A1,"dddd")
I have used this code
formel = "=TEXT(A" & CStr(NewRow) & ";""dddd"")"
Worksheets("Blad2").Cells(NewRow, 2).Formula = formel
I get an error on the second line saying:
Runtime Error '1004'
application-defined or object-defined error
NewRow is a valid number, e.g. 36
What is the error?
// Anders
I want to add a formula to a cell the formula is:
=TEXT(A1,"dddd")
I have used this code
formel = "=TEXT(A" & CStr(NewRow) & ";""dddd"")"
Worksheets("Blad2").Cells(NewRow, 2).Formula = formel
I get an error on the second line saying:
Runtime Error '1004'
application-defined or object-defined error
NewRow is a valid number, e.g. 36
What is the error?
// Anders