2

I've got the following VBA code extract,

series.Points(2).DataLabel.Text = "A:" & t1 & vbNewLine & "B:" & t2 

I was expecting the following output,

A:1
B:2

But I'm getting the following instead,

A:1

B:2

Where have I gone wrong?

3
  • 1
    what happens if you remove vbNewLine? Commented Feb 16, 2016 at 13:08
  • just one straight line Commented Feb 16, 2016 at 13:13
  • Ah, see Ralph's answer then. I think it would work. Commented Feb 16, 2016 at 13:14

1 Answer 1

4

Try this:

series.Points(2).DataLabel.Text = "A:" & t1 & chr(13) & "B:" & t2 
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.