Results 1 to 5 of 5
  1. #1
    DC CS is offline Advanced Beginner
    Windows 11 Office 365
    Join Date
    Jan 2023
    Location
    Vaalpark, South Africa
    Posts
    69

    Run-time error '462' : The remote server machine does not exist or is unavailable.

    Good day all,
    I am receiving the runtime error 462 since last week. Nothing has changed, except that the latest updates from Microsoft was loaded.
    When ever I run the code for a second time, I receive this error. I have checked several forums and have done all of the suggestions they propose to overcome this issue, but to no avail.
    Below is my code when the procedure starts:

    Code:
        
        Dim shp As Shape    Dim oShp As Object
        Dim doc As Word.Document
        Dim objWord As Object
        Dim objDoc As Word.Document
        
        If IsNull(strdocpath) Or strdocpath = "" Then
           Exit Function
        End If
          
        Set objWord = CreateObject("Word.Application")
        objWord.Visible = True
        Set objDoc = objWord.Documents.Open(strdocpath)
    
    
        Set doc = objWord.ActiveDocument
        Set oShp = doc.Shapes
    The error occurs on this piece of code (on the first line and all of the subsequent lines):

    Code:
            
            If ActiveWindow.View.SplitSpecial <> wdPaneNone Then            ActiveWindow.Panes(2).Close
            End If
            If ActiveWindow.ActivePane.View.Type = wdNormalView Or ActiveWindow. _
                ActivePane.View.Type = wdOutlineView Then
                ActiveWindow.ActivePane.View.Type = wdPrintView
            End If
            ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageFooter
            Selection.HeaderFooter.Shapes.Range(Array("Text Box 1")).Select
            Selection.Font.Size = 10
    Any suggestions?



    Thanks

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    have done all of the suggestions they propose
    just so we don't waste everybody's time making the same suggestions - what have tried?

  3. #3
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Have you tried to fully qualify the offending code?
    Code:
    If objWord.ActiveWindow.View.SplitSpecial <> wdPaneNone Then                  
    
       objWord.ActiveWindow.Panes(2).Close
    End If
    .............
    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  4. #4
    DC CS is offline Advanced Beginner
    Windows 11 Office 365
    Join Date
    Jan 2023
    Location
    Vaalpark, South Africa
    Posts
    69
    Hi Gicu,
    Yes, it resolved the issue.

    Thanks a mil.

  5. #5
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Display Error when remote sql server down
    By Jerry Lutz in forum SQL Server
    Replies: 5
    Last Post: 05-28-2021, 09:57 AM
  2. Replies: 4
    Last Post: 01-25-2018, 03:04 PM
  3. Replies: 6
    Last Post: 01-11-2017, 05:10 AM
  4. Replies: 3
    Last Post: 02-23-2012, 07:16 PM
  5. Getting date/time from remote server
    By mxfrail in forum Programming
    Replies: 4
    Last Post: 09-21-2009, 07:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums