Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm adding "Measure_1" within certain cells. This requires me to double click in the cell, go to the end of the existing text, insert a carriage return (alt+ent), and then paste in MEASURE_1. Therefore, I'm trying to automate this.

Unfortunately my VBA code below is overwriting the existing text with the example I used when recording my macro.

activecell.FormulaR1C1 = "D4)" & Chr(10) & "MEASURE_1"

How do I make it say:

activecell.FormulaR1C1 = **ANY TEXT WITHOUT CHANGING** & Chr(10) & "MEASURE_1"

Many thanks. Michael.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Try activecell.FormulaR1C1 = activecell.FormulaR1C1 & Chr(10) & "MEASURE_1"

share|improve this answer
That's it. Works great. Many thanks. –  RocketGoal Sep 13 '13 at 8:39
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.