Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default Export cell data to a template in Word

Good Morning All,

I have worked with macros in Excel before and with the help of this
discussion board managed to make some very complicated stuff work.

Now, I have a different problem...

I have data in an Excel sheet and based on that data I must compile a report
in Word.

The sheet is structured as follows:

Criteria - Company A - Company B - Company C

Info 1
Info 2
Info 3


Is it possible to create a macro to take information from each criteria and
each company and export that information to a template in Word (Basically
filling in the blanks). If it is possible, where should I begin?

Thanks,

Mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default Export cell data to a template in Word

On 3 Aug, 08:58, mike wrote:
Good Morning All,

I have worked with macros in Excel before and with the help of this
discussion board managed to make some very complicated stuff work.

Now, I have a different problem...

I have data in an Excel sheet and based on that data I must compile a report
in Word.

The sheet is structured as follows:

Criteria - Company A - Company B - Company C

Info 1
Info 2
Info 3

Is it possible to create a macro to take information from each criteria and
each company and export that information to a template in Word (Basically
filling in the blanks). If it is possible, where should I begin?

Thanks,

Mike


Yes, no problem at all - something like



Dim appwd As Object
On Error GoTo notloaded
Set appwd = GetObject(, "Word.Application")
notloaded:
If Err.Number = 429 Then
Set appwd = CreateObject("Word.Application")
End If
appwd.Visible = True
On Error GoTo 0
With appwd
.documents.Add Template:="Path and Name of Template"
'now fill out the document
appwd.activedocument.bookmarks("Whatever").Range.T ext =
Range("Wherever").Value

end with
set appwd=nothing

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
export information from excel to word doc template Aaron Hodson \(Coversure\) Excel Worksheet Functions 5 January 25th 08 04:40 PM
Export excel data to word document mda19652 Excel Discussion (Misc queries) 1 November 1st 07 12:01 PM
Export spreadsheet data to PDF or Word document Kim Jespersen Excel Programming 1 August 6th 06 10:16 AM
How can I Export data from to Access to an Excel Template Chuck Excel Discussion (Misc queries) 0 July 6th 06 08:20 PM
export excel data to a word template using a macro Ross1 Excel Programming 1 March 25th 05 04:31 AM


All times are GMT +1. The time now is 02:18 AM.

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"