Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default 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


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
calling printer Jase Excel Discussion (Misc queries) 0 October 13th 08 05:43 PM
CALLING PARTICULAR CHARTS Jase Excel Discussion (Misc queries) 1 April 10th 08 09:17 PM
Calling Column D Trackeous Excel Discussion (Misc queries) 0 November 30th 06 03:42 PM
Calling an Add-In BillCPA Excel Discussion (Misc queries) 2 August 11th 05 09:32 PM
Calling Excel from Word with parameters DoctorG Excel Discussion (Misc queries) 4 July 12th 05 07:53 AM


All times are GMT +1. The time now is 12:45 AM.

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

About Us

"It's about Microsoft Excel"