Asci equivalent of soft return (alt+enter)

  • Thread starter Thread starter Andibevan
  • Start date Start date
A

Andibevan

Hi All,

What is the asci combination required to create the equivalent of pressing
alt+enter when in a cell?

I.e. I want to print the words "Cat" and "Mat" in the same cell but on
different lines using VBA?

TIA

Andi
 
With ActiveCell
..Value = "Cat" & vbLf & "Mat"
..WrapText = True ' normally done automaically
End With

Regards,
Peter T
 
Back
Top