Consulting

Results 1 to 2 of 2

Thread: Error 4198 "command failed"

  1. #1
    VBAX Regular
    Joined
    Jan 2019
    Posts
    9
    Location

    Error 4198 "command failed"

    Hi
    At work we have a big VBA program and im now adding some Hyperlinks here and there to make it easier to use. My problem is that one of the codes i have to put hyperlink always gets error 4198 command failed and i dont get why. The debug tells me that the issue is on this part of the code:

    ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range, Address:= _
    "Q:\MIP-02test.pdf", SubAddress:="", ScreenTip:="", TextToDisplay:= _
    "Manuel Installation Des Produits BMH"

    If you have any idea why this error could happen tell me

    thank you

  2. #2
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Works for me...
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •