NeelsBorstlap
New Member
- Joined
- Jul 23, 2010
- Messages
- 25
Hi - Need help with this long formula in my code - How (where) do I enter a " _" and then hit enter to keep the code nice under each other and not in 'n long line????
I tried everything but VBA give me a " Compile error: Expected: list separator or )" and I do not know what it means.
ActiveCell.FormulaR1C1 = _
"=IF(ISNUMBER(SEARCH(""loan"",RC[-2])), ""Cash Loan"" , IF(ISNUMBER(SEARCH(""Proleen Balance"",RC[-2])), ""Cash from Proloan"" , IF(ISNUMBER(SEARCH(""cash receipt -client"",RC[-2])), ""Cash Payment"",IF(ISNUMBER(SEARCH(""337"",RC[-5])), ""Exp Fuel Generator"",IF(ISNUMBER(SEARCH(""331"",RC[-5])), ""Exp Printing and Stationary"",IF(ISNUMBER(SEARCH(""332"",RC[-5])), ""Exp Refund CL Proloan"",IF(ISNUMBER(SEARCH(""333"",RC[-5])), ""Exp Groceries"", """")))))))"
Thanks.
Neels
I tried everything but VBA give me a " Compile error: Expected: list separator or )" and I do not know what it means.
ActiveCell.FormulaR1C1 = _
"=IF(ISNUMBER(SEARCH(""loan"",RC[-2])), ""Cash Loan"" , IF(ISNUMBER(SEARCH(""Proleen Balance"",RC[-2])), ""Cash from Proloan"" , IF(ISNUMBER(SEARCH(""cash receipt -client"",RC[-2])), ""Cash Payment"",IF(ISNUMBER(SEARCH(""337"",RC[-5])), ""Exp Fuel Generator"",IF(ISNUMBER(SEARCH(""331"",RC[-5])), ""Exp Printing and Stationary"",IF(ISNUMBER(SEARCH(""332"",RC[-5])), ""Exp Refund CL Proloan"",IF(ISNUMBER(SEARCH(""333"",RC[-5])), ""Exp Groceries"", """")))))))"
Thanks.
Neels