Range("A1").Formula = "=IFERROR(If('AUX Table'!A3=""Yes"", IF('Legend'!C1=""Yes"", _ If('Aux colour table'!V1=""Yellow"", etc etc
            Asked
            
        
        
            Active
            
        
            Viewed 64 times
        
    0
            
            
        - 
                    Either put it all on one line or research how to concatenate strings over multiple lines. Other than for readability, there is no reason to spread over multiple lines anyway. – ACCtionMan Dec 14 '21 at 11:56
 - 
                    @ACCtionMan there is a limit in the VBA editor – Andreas Dec 14 '21 at 11:59
 
1 Answers
1
            
            
        You need to end the first line with a " then start the new line with the same.
Range("A1").Formula = "=IFERROR(If('AUX Table'!A3=""Yes"", IF('Legend'!C1=""Yes"","_ 
"If('Aux colour table'!V1=""Yellow"""
        Andreas
        
- 23,610
 - 6
 - 30
 - 62