Do you think its Version of office or internet explorer ?
It is clearly your code and the security architecture of Windows 10 and the Internet Explorer / Edge.
Many things are no longer possible... you have to break new ground.
Andreas.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Dear Colleagues,
Hope you are doing,
Running VBA code created in 32 bit excel version 2016, meanwhile I moved to 64 bit Windows Version but excel version still 32bit.
After moving to 64bit Windows 10, I’m getting a lot of (Run time error 13 & Run time error 91 object variable or with block variable not set). VBA run in Internet Explorer (IE 11), also I tied to add DoEvent & Application.wait, but sometimes it’s working and sometimes is not. (Library is referred to WOW64).
More information below:
Do you think its Version of office or internet explorer ?
Thanks for your attention. I’m looking forward to your Suggestions.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Do you think its Version of office or internet explorer ?
It is clearly your code and the security architecture of Windows 10 and the Internet Explorer / Edge.
Many things are no longer possible... you have to break new ground.
Andreas.
There are some changes you have to make when switching from 32 to 64 bit. You can actually add code to the macro to allow it to work in either environment.
Here is one of the changes:
64Bit-****Declaring API functions in 64 bit Office
https://www.jkp-ads.com/Articles/apideclarations.asp
With the introduction of Windows 7 and Office 2010 VBA developers face a new challenge: ensuring their applications work on both 32 bit and 64 bit platforms.
This page is meant to become the first stop for anyone who needs the proper syntax for his API declaration statement in Office VBA.
It includes links to related MS documentation.
.
! **** Convert 32 bit to 64 bit macrosmake the following changes to your DECLARE statements:
.
Private Declare PTRSAFE Function apiOpenClipboard Lib "User32" _
Alias "OpenClipboard" _
(ByVal hWnd As LongPtr) _
As Long
.
The way I've done this is to search on DECLARE and then add the PtrSafe keyword after Declare and change the Long to LongPtr (only within the parentheses). This will allow the code to work in either 32 or 64 bit.
.
There are some changes you have to make when switching from 32 to 64 bit. .
That is not relevant for this thread, the OP has a 32bit Office on both systems.
A PTRSAFE declaration and using LongPtr is only necessary on 64bit Office.
Andreas.
Hello, Code is working fine in both laptop. The only thing i face with 64bit windows is the Run Time Error 13 & 91. (Element = Nothing) but once you Wait.Second or Application.Wait after the debugging it go through for few transactions and gettin Debug again.
Hi Nothing to do with PtrSafe & LongPtr. I didn't switch the Excel Version from 32bit to 64bit