Sending HTTP requests with VBA from Word

前端 未结 3 1052
滥情空心
滥情空心 2020-11-29 07:46

I am trying to send data from a Word document to a web page. I have found some code, pasted it into a new module, and saved it. When I run it I get \"compile error, user def

3条回答
  •  情歌与酒
    2020-11-29 07:58

    You will need to change your references (Tools=>References in the code window). Look for Microsoft WinHTTP Services, version 5.1 (or newer) and tick the box. If you are using Vista and office 2007, you may also need to register it first. Open a command window as administrartor and paste:

    >regsvr32.exe "c:\windows\system32\winhttp.dll"
    

    It should say if it works.

提交回复
热议问题