tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,924
- Office Version
- 365
- 2019
- Platform
- Windows
My client has the following error on their PC:
This is ModURL:
Could the error be due to the API? The code work son my 32 bit Excel so I assume the client has a 64 bit version? If so, how can I convert the API to make it work on both 32 bit and 64 bit Excel?
Thanks
Code:
Compile error in hidden module: ModURL.
This error commonly occurs when code is incompatible with the version, platform , or architecture of this application.
This is ModURL:
Code:
Option Explicit
Public Declare Function InternetGetConnectedState Lib "wininet.dll" (lpdwFlags As Long, ByVal dwReserved As Long) As Boolean
Function URL() As Boolean
Dim WebStat As Long
URL = (InternetGetConnectedState(WebStat, 0&) <> 0)
End Function
Could the error be due to the API? The code work son my 32 bit Excel so I assume the client has a 64 bit version? If so, how can I convert the API to make it work on both 32 bit and 64 bit Excel?
Thanks