Excel Macro Formula: Concatenate Gives a False Answer
Hi excelforum Experts,
I am trying to use Concatenate formula in cell A3 of each worksheet in a workbook as =concatenate(A4," ",B4) but it gave me FALSE as an answer across all worksheets.
Re: Excel Macro Formula: Concatenate Gives a False Answer
hi arnel. what is the activecell for? arent' you already specifying you want the formula inside cell A3? and when you do two equals like this below, it is doing a logical test:
ws.Range("A3") = ActiveCell.FormulaR1C1
it will return TRUE or FALSE. you are asking if ws.Range("A3") is equals to activecell.formular1c1.
secondly, if you use FormulaR1C1, you must use the R1C1 style. that is:
Re: Excel Macro Formula: Concatenate Gives a False Answer
Hi benishiryo,
Thanks for pointing this out and for helping me understand how the code works. I admit I overlooked those two equal signs and I am glad you explain what would be the outcome.
Anyway, I really appreciate your inputs and explanations. Thank you so much!
Bookmarks