![]() |
calling word
Hallo Peter,
perhaps u should use early binding with a reference to Word Extras - References - Microsoft Word <No. of your Version Object Library then use a declaration like Dim appWord as Word.Application Set appWord= New Word.Application instead of Set appword = CreateObject("word.application") Heiko :-) "peter" wrote: Hi, Set appword = CreateObject("word.application") appword.Visible = True ...open document here appword.ActiveDocument.Bookmarks("date").Select 'after going to the bookmark and inserting the date and 'time, the selection is highlighted. appword.Selection = mDate & " " & myTIME 'i want to go to the end of the line(unhighlight) 'and go down one row (hit enter key) appword.Selection.EndKey Unit:=wdLine, Count:=1 Selection.TypeParagraph 'I get the following error at the endkey line Named argument not found run time error 448 I believe this used to work. What could I have changed in either word or excel???? thanks, peter |
All times are GMT +1. The time now is 09:46 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com