VBA - Cells

  • Thread starter Thread starter Jerome Patrick Webb
  • Start date Start date
J

Jerome Patrick Webb

All,

Is there a way to cause line breaks in data that I am
entering into a cell? Partial code:

' New Equipment ID... create new work TERMID cell
Range("RESIDTERM").Offset(lOffEqmt, 10).Value = _
"******** SPACER ************" & _
"Term1 :" & _
Term & "--" & _
'Insert line break here?
"FMV Pct: " & _
FMVPct & "--" & _
'Insert line break here?
"FMV $: " & _
FMVDol & "--" & _
'Insert line break here?
"OLV Pct: " & _
OLVPct & "--" & _
'Insert line break here?
"OLV $: " & _
OLVDol & "--"
' Modify TERMID cell
With Range("RESIDTERM").Offset(lOffEqmt, 10)
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlBottom
.WrapText = True
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.MergeCells = False
End With

Thanks for your assistance!
 
Yes: CHR(10)

Range("RESIDTERM").Offset(lOffEqmt, 10).Value = _
"Term1:" & Term & "--" & CHR(10) & _
...
 
-----Original Message-----
Yes: CHR(10)

Range("RESIDTERM").Offset(lOffEqmt, 10).Value = _
"Term1:" & Term & "--" & CHR(10) & _
...

.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top