Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VBA 64 bits reading error #21

Open
Tofandel opened this issue Apr 17, 2019 · 5 comments
Open

VBA 64 bits reading error #21

Tofandel opened this issue Apr 17, 2019 · 5 comments

Comments

@Tofandel
Copy link

Tofandel commented Apr 17, 2019

If I declare a dictionary from another module and use it in a function of another module then when trying to read a key using myDic("myKey") while in the debugger the keys are shown, the value returned is "Empty"

It works as expected on 32 bits version of excel but not on 64 bits

If I remove the dictionary module to use the default windows dictionary it works fine again

@Tofandel
Copy link
Author

Related to VBA-tools/VBA-JSON#111

@dwjobling
Copy link

I'm also noticing this error with the dictionary only on 64 bit versions. The read seems to work ok the first time but fails on subsequent reads. This is also quite variable as to whether it fails or not - doesn't seem to be any discernible pattern. My temp fix is to read the value only once.

@LUIVLO
Copy link

LUIVLO commented Jul 22, 2019

Hi,

On 64 bits excel when i try to read a value like that LastName = Item("subscriber")("lastName")

I received a message : Automation Error

@Felix-N
Copy link

Felix-N commented Oct 28, 2019

same problem here.

quick update:
the problem only occurs on accessing nested items - tested for 2 levels like Item("subscriber")("lastName")

Sometimes though it works. When it does not it works for now to assign a variable tmp to Item("subscriber") and then access from that variable tmp("lastName")

@nectorprime
Copy link

nectorprime commented Oct 29, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants