I have a small question regarding the following piece of code:
Worksheets("Sheet1").Range("A1").Formula = "=RANK(AA12" & CStr(Application.International(xlListSeparator)) & "AA12:AA23)"
You can safely assume that "Sheet1" exists. The code gives me Application-defined or object-defined when I execute the code. I was wondering what is wrong. I think my formula has been defined correctly.