Link to home
Start Free TrialLog in
Avatar of PerMagnusStrom
PerMagnusStrom

asked on

Writing formula in cell with VBA

Hi,

I need to update the formulas i a large number of similar files, and have written a small routine to update cells with an new formula..

The line

Range("R9").Formula = "=SUMMERPRODUKT($K$15:$K$108;R15:R108;$I$15:$I$108)"

fails, and returns the message "Application-defined or object-defined error", but I don't understand why..

The SUMMERPRODUKT is the Norwegian version of SUMPRODUCT

Please help.. :)
Avatar of FamousMortimer
FamousMortimer
Flag of United States of America image

Good Morning,

Try replacing semi colons ; with commas ,
ASKER CERTIFIED SOLUTION
Avatar of Rory Archibald
Rory Archibald
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial