I have set up an Excel Macro that rearranges an Excel sheet to only the information I need, and places this in an output sheet and then saves the document under a specific name. This works fine on my laptop, but when using this on another computer, I get runtime error 1004 on a specific line. I have made sure to enable macros on both systems and allow VBA.
Below is the VBA code that runs the error, this is the part of the code which selects a mobile number, and if no mobile number is provided it will then check for home number, and then work number, and paste this into the Output sheet:
ActiveCell.Formula2R1C1 = _
"=IFS(AND(Input!RC[10]="""",Input!RC[8]=""""),Input!RC[9],Input!RC[10]="""",Input!RC[8],Input!RC[10]<>"""",Input!RC[10])"
Next Row
I'd be grateful for any help!