Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Line Broken Transfering data to Word

Try

wdApp.Selection.TypeText Text:=X & vbNewLine & Y

--
Regards,
Tom Ogilvy


"mhferreira " wrote in message
...
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 work


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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transfering data from a .pdf file to word and then to excel David Bateman Excel Worksheet Functions 1 February 19th 10 10:03 PM
Automatically Transfering Data from Excel to Word file Ra Excel Discussion (Misc queries) 3 April 8th 09 01:20 PM
transfering data from a table to a line graph batyeshua Charts and Charting in Excel 1 March 27th 06 01:29 AM
Transfering a row of data to a template word or worksheet Marc Williams Excel Discussion (Misc queries) 1 October 27th 05 12:33 AM
Excel data not transfering to Word. Colums are expanded. carolsue1313 New Users to Excel 2 June 24th 05 08:16 PM


All times are GMT +1. The time now is 06:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Đ2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"