Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How can I merge Excel data into MS Word

Is it possible to pull information from an Excel spreadsheet into Word. If
so can someone pls explain how to do it.

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default How can I merge Excel data into MS Word

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How can I merge Excel data into MS Word

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
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
Merge Excel Data into Word Document Webkinz Excel Discussion (Misc queries) 2 September 21st 07 12:19 PM
How do I merge data from excel into a Word template? CJ Excel Discussion (Misc queries) 0 August 22nd 06 08:48 PM
Excel data source will not merge changes to Word Jennifer Mcdermeit Excel Discussion (Misc queries) 2 July 20th 06 07:31 PM
mail merge excludes my headers and critical data in Word merge Nix Excel Discussion (Misc queries) 0 April 21st 06 08:35 PM
Word merge with Excel data julie Excel Discussion (Misc queries) 1 March 24th 05 11:48 PM


All times are GMT +1. The time now is 12:42 PM.

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

About Us

"It's about Microsoft Excel"