Generate link from outlook with a macro (vba) using FollowHyperlink

0

I have a macro to read the emails and extra information and based on that information will generate a link to respond to a server (in php) I already have that part but I can not generate the links from the macro and probe several things and I do not achieve that when the mail receives the mail, the link is opened automatically

    
asked by sanlegas 06.11.2018 в 00:13
source

1 answer

0

Definitely can not with followlink but if I found another method that served me I mean ShellExecute Declare this function

 Private Declare Function ShellExecute _
  Lib "shell32.dll" Alias "ShellExecuteA" ( _
  ByVal hWnd As Long, _
  ByVal Operation As String, _
  ByVal Filename As String, _
  Optional ByVal Parameters As String, _
  Optional ByVal Directory As String, _
  Optional ByVal WindowStyle As Long = vbMinimizedFocus _
  ) As Long

and call it this way in my method sbVBA_To_Open_Website_URL_FollowHypderlink

 Dim lSuccess As Long
lSuccess = ShellExecute(0, "Open", "www.google.com")
    
answered by 06.11.2018 в 01:16