bentheimmigrant
Lost & confused
- Local time
- Today, 06:21
- Joined
- Aug 21, 2015
- Messages
- 60
I'm trying to send strings from Access vba to excel. Some of the strings have multiple lines. I've tried using vbCr, vbCrLf, and Chr(13) & Chr(10), but all of these end up with nothing between them in Excel, all on a single line.
To clarify, I'm building the string, and then sending it to the cell. I am not (and would reaaaalllllly like to avoid) dynamically writing to the cell.
I am using late binding, but I don't see how that would make a difference.
So essentially:
all put "Some textSome more text" into the cell xlRange.
Halp?
To clarify, I'm building the string, and then sending it to the cell. I am not (and would reaaaalllllly like to avoid) dynamically writing to the cell.
I am using late binding, but I don't see how that would make a difference.
So essentially:
Code:
xlRange = "Some text" & vbCr & "Some more text"
'AND
xlRange = "Some text" & vbCrLf & "Some more text"
'AND
xlRange = "Some text" & Chr(13) & Chr(10) & "Some more text"
all put "Some textSome more text" into the cell xlRange.
Halp?