Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is it possible to pull information from an Excel spreadsheet into Word. If
so can someone pls explain how to do it. Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is some sample code which write data in range A1:A10 into a new word
file. Possibly, you need a reference to MS Word Object Library. Sub Put2Word_Click() Dim wdApp As Object, i As Integer Set wdApp = CreateObject("Word.Application") With wdApp .Documents.Add .Visible = True End With With wdApp.Selection .Font.Name = "Arial" ' set font .Font.Bold = True .Font.Size = 12 For i = 1 To 10 .TypeText Text:=CStr(Cells(i, 1)) .TypeParagraph Next i End With wdApp.Activate Set wdApp = Nothing End Sub "Troy" wrote in message ... Is it possible to pull information from an Excel spreadsheet into Word. If so can someone pls explain how to do it. Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Thanks for the excellent code. It seems then it is not as simple as using the mail merge wizard options. I may come back to you further if I get probs if that is ok Paul *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Merge Excel Data into Word Document | Excel Discussion (Misc queries) | |||
How do I merge data from excel into a Word template? | Excel Discussion (Misc queries) | |||
Excel data source will not merge changes to Word | Excel Discussion (Misc queries) | |||
mail merge excludes my headers and critical data in Word merge | Excel Discussion (Misc queries) | |||
Word merge with Excel data | Excel Discussion (Misc queries) |