MarkCBB
Active Member
- Joined
- Apr 12, 2010
- Messages
- 497
Hi there,
I am getting the following error on one of my laptops (MS Excel 2013 All machines)
"Compile error: The code in this project must be updated for use on 64-bit systems. Please review and update Declare statements and then mark them with the PrSafe attribute.
below is the code:
Can anyone assist me with this ad explain it to me, do I need to take this type of error into consideration for other Functions?
I am getting the following error on one of my laptops (MS Excel 2013 All machines)
"Compile error: The code in this project must be updated for use on 64-bit systems. Please review and update Declare statements and then mark them with the PrSafe attribute.
below is the code:
Code:
Public Declare Function InternetGetConnectedState Lib "wininet.dll" (lpdwFlags As Long, ByVal dwReserved As Long) As Boolean
Function IEAvailable() As Boolean
Dim IEStat As Long
IEAvailable = (InternetGetConnectedState(IEStat, 0&) <> 0)
End Function
Sub isInternetAvailable()
If IEAvailable = False Then MsgBox "Not connected!"
If IEAvailable = True Then MsgBox "Connected!"
End Sub
Can anyone assist me with this ad explain it to me, do I need to take this type of error into consideration for other Functions?