LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
flummi
 
Posts: n/a
Default Help Please:( Import Excel Data To Word

Okay, what I can come up with is this:

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 26.02.2006 by h
'
channelNumber = Application.DDEInitiate(app:="WinWord", _
topic:="C:\SALES.DOC")
Set rangeToPoke = Worksheets("Sheet1").Range("A1:b1")
Application.DDEPoke channelNumber, "\StartOfDoc", rangeToPoke
Application.DDETerminate channelNumber

End Sub

However, whe I run the macro for the first time I get an info box
asking whether I want to start Winword. Click "yes".
Then I get an error message "type mismatch". Click "end".
From there on the macro runs okay.


In the short time I had I couldn't find out what the reason is for the
error messasge.

Maybe a real expert reads this post and can suggest a solution.

If I have something new I will post it.

Good luck.

Hans

 
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
Automating import of Word tables into Excel Han Excel Discussion (Misc queries) 0 January 18th 06 08:42 AM
Copy a word doc to excel and hyperlink data between the 2. link an excell and word document Charts and Charting in Excel 0 January 16th 06 11:16 PM
how can I import excel data to word document powersree Excel Discussion (Misc queries) 1 October 10th 05 12:10 AM
Import data from files with different names to EXCEL D'base. thunderfoot Excel Discussion (Misc queries) 2 June 10th 05 11:05 AM
How do I import a WORD file into EXCEL? mauimama Excel Discussion (Misc queries) 0 March 1st 05 03:13 AM


All times are GMT +1. The time now is 07:51 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"