Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2004

Tip: Looking for answers? Try searching our database.

method not known or available

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
btmcfadden@msn.com - 29 Nov 2004 16:57 GMT
I am getting this error message on the line below reading:"For each oRvs..."
with the word "revisions" highlighted.  WHY?  I have references set.  I have
included some of the surrounding code - please HELP!  THANKS!

           Set oDoc = oApp.Documents.Item(1)
               Dim strCurrDate As Date
               strCurrDate = Forms!Approval!txtDate
               oDoc.Variables("DateEdited").Value = strCurrDate
               oDoc.Variables("ApprovedBy").Value = sText
               oDoc.Fields.Update
               .Options.DefaultFilePath(wdDocumentsPath) = strSavDir
               'accepts deletions so they are not shown in approved doc
               Dim oRvs As Revision
               For Each oRvs In ActiveDocument.Revisions
                   If oRvs.type = wdRevisionDelete Then
                       oRvs.Accept
                   End If
               Next
Helmut Weber - 29 Nov 2004 17:09 GMT
Hi,
seems you are trying to access word from another application.
Therefore the reference to this application is missing in
Dim oRvs As Revision
try
Dim oRvs As oApp.Revision.
The same applies to ActiveDocument.Revisions
try
oApp.ActiveDocument.Revisions
---
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
btmcfadden@msn.com - 29 Nov 2004 18:53 GMT
Yes, it is correct that I am accessing word from another application, Access.
I have adjusted my code and compiled.  But, now I am getting a "user
defined" error.

> Hi,
> seems you are trying to access word from another application.
[quoted text clipped - 11 lines]
> Word XP, Win 98
> http://word.mvps.org/
TRM - 29 Nov 2004 20:17 GMT
Okay, I have adjusted and THINK I have it.  Thanks again for your help!

> Yes, it is correct that I am accessing word from another application, Access.
>  I have adjusted my code and compiled.  But, now I am getting a "user
[quoted text clipped - 15 lines]
> > Word XP, Win 98
> > http://word.mvps.org/

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.