Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .