View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
mhferreira[_2_] mhferreira[_2_] is offline
external usenet poster
 
Posts: 1
Default Line Broken Transfering data to Word

Hi, Im transfering data from excel to MS Word via code.

But i dont know how insert a line broken in a string.


Example:
X="asdf"
Y="zcxv"

wdApp.Selection.GoTo What:=wdGoToBookmark, Name:="A"
wdApp.Selection.TypeText Text:=X &\n& Y

i try use \n but donīt wor

--
Message posted from http://www.ExcelForum.com