string - New line character in excel when printing from vb.net -


i trying print value cell contains line seperator alt+enter or char(10). far prints text prints values want wrap in excel in different cells

in vb.net code keep building string loop through reports , have tried vbcrlf, vblf etc try , mimic alt+enter entry in excel using similar below

_string = _string & vbcrlf & report.name &" " & _pctstatus &"%" 

and paste string a1 using

clipboard.setdataobject(_string.tostring, false) arange.select() aworksheet.paste() 

in picture can see keep getting values in a3 want result in a1

excel output

i can around structuring text formula char(10) in cell formula prefer enter string value , have no formulae. have constrained number of free cells in excel report since adding excel sheet heavily populated already

so special need use clipboard? if not try this:

arange.value = _string.tostring 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -