I was wondering how to get a excel formula I have to work in VBA?
Sheet1.Range("AF9").Formula = "=IF(AND(AA9<>"",AB9<>"",AC9<>"",AD9="",AE9=""),""""&AA9&""","&""""&AB9&""","&""""&AC9&""","&""""","&"""""","")"
That is my current vba code (not working) ...
This is what the formula is in the excel sheet itself...
=IF(AND(AA9<>"",AB9<>"",AC9<>"",AD9="",AE9=""),""""&AA9&""","&""""&AB9&""","&""""&AC9&""","&""""","&"""""","")
I am not finding the linked answer helpful. I understand the double quotes part but I'm not understanding why the commas are causing an error.