Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have data from about seven cells that I need to have combined into one
string when I use data automation from excel to word, is this possible? |
#2
![]() |
|||
|
|||
![]()
Hi Adam
not sure what you mean by "data automation from excel to word" but in excel you can concatenate the contents of a number of cells, e.g. if A1 has Mr B1 has John C1 has Smith =A1 & " " & B1 & " " & C1 will give you Mr John Smith so could you combine the 7 cells into one in excel and use that in your link with word? hope this helps Cheers JulieD will give the cont "Adam" wrote in message ... I have data from about seven cells that I need to have combined into one string when I use data automation from excel to word, is this possible? |
#3
![]() |
|||
|
|||
![]()
Adam,
We can slightly modify the code I provided before Sub moveToWord() Set x = CreateObject("Word.Application") x.Documents.Add x.Visible = True For Each cl In Selection z = z & cstr(cl.value) Next x.Selection.TypeText CStr(z) End Sub http://HelpExcel.com "Adam" wrote: I have data from about seven cells that I need to have combined into one string when I use data automation from excel to word, is this possible? |
#4
![]() |
|||
|
|||
![]()
I got a question: how I do I seperate each cell by commas int his code. Also
is there a way to add comments (or labels) to each cell. Thanks "galimi" wrote: Adam, We can slightly modify the code I provided before Sub moveToWord() Set x = CreateObject("Word.Application") x.Documents.Add x.Visible = True For Each cl In Selection z = z & cstr(cl.value) Next x.Selection.TypeText CStr(z) End Sub http://HelpExcel.com "Adam" wrote: I have data from about seven cells that I need to have combined into one string when I use data automation from excel to word, is this possible? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Combining data (numeric format) in multiple cells into one cell (t | Excel Discussion (Misc queries) | |||
How do I center data across multiple cells in excel without mergi. | Excel Discussion (Misc queries) | |||
Convert data type of cells to Text,Number,Date and Time | Excel Worksheet Functions | |||
To safety merge cells without data destroyed, and smart unmerge! | Excel Discussion (Misc queries) | |||
Convert data of cells to any type: Number, Date&Time, Text | Excel Discussion (Misc queries) |