+ Reply to Thread
Results 1 to 7 of 7

Running VBA code created in 32 bit excel on Windows 10 64 bit

  1. #1
    Registered User
    Join Date
    11-30-2020
    Location
    UAE
    MS-Off Ver
    2016 - 32-BIit
    Posts
    4

    Running VBA code created in 32 bit excel on Windows 10 64 bit

    Dear Colleagues,
    Hope you are doing,

    Running VBA code created in 32bit excel version 2016, meanwhile I moved to 64bit windows version but excel version is 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, also I tied to add DoEvent & Application.wait, but sometimes it’s working and sometimes is not. More information below:
    Old Laptop: Windows 7 (32bit) - Excel Version 2016 (32bit)
    New Laptop: Windows 10 (64bit) - Excel Version 2016 (32bit)

    I’m aware that it’s taking the .DLL from WOW64, but even though it’s should work fine ? Or shall I insert Declare PtrSafe & LongPtr if I’m using 64bit environment.

    Thanks for your attention. I’m looking forward to your Suggestions.

    Apologize I can’t share VBAcodes because it’s an internal project.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Running VBA code created in 32 bit excel on Windows 10 64 bit

    You only need to amend API calls if you are running 64bit Office as well. Not sure what you mean about running VBA in IE though?

    Errors 13 and 91 suggest a code problem that is nothing to do with the version of Office.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    11-30-2020
    Location
    UAE
    MS-Off Ver
    2016 - 32-BIit
    Posts
    4
    Quote Originally Posted by rorya View Post
    You only need to amend API calls if you are running 64bit Office as well. Not sure what you mean about running VBA in IE though?

    Errors 13 and 91 suggest a code problem that is nothing to do with the version of Office.
    Hello rorya, Thank you, so no need for API if I’m running 32bit office on 64bit windows ?

    I mean IE = Internet Explorer. Yes indeed error 13 and 91 is nothing, but I’m running the same in the 32bit windows without those error.
    I tried something like wait/loop but sometimes it works sometimes not.

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Running VBA code created in 32 bit excel on Windows 10 64 bit

    I still don't think it's an issue with your version of Office - though it could be an issue with your version of IE. Very hard to say without any code to look at.

  5. #5
    Registered User
    Join Date
    11-30-2020
    Location
    UAE
    MS-Off Ver
    2016 - 32-BIit
    Posts
    4

    Re: Running VBA code created in 32 bit excel on Windows 10 64 bit

    Quote Originally Posted by rorya View Post
    I still don't think it's an issue with your version of Office - though it could be an issue with your version of IE. Very hard to say without any code to look at.
    Hmmm Do you think the problem with the code or IE ? because it's running perfectly on 32bit environment. I'm using Internet Explorer 11 in both laptop. Anyway here're the codes. Thank you in advance.
    Last edited by arizkallah; 12-03-2020 at 11:35 PM.

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Running VBA code created in 32 bit excel on Windows 10 64 bit

    There's nothing there that would vary with office versions, so I'd suspect an issue with a different version of IE.

  7. #7
    Registered User
    Join Date
    11-30-2020
    Location
    UAE
    MS-Off Ver
    2016 - 32-BIit
    Posts
    4

    Re: Running VBA code created in 32 bit excel on Windows 10 64 bit

    I disabled the debugging from IE, and I got debugging but after I added Application.Wait DateAdd("s", 1, Now) in the VBA script - It goes through but somehow it stoped in some point but once click resume it works.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro Created in Excel for Windows not Running on Mac
    By asandage in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-06-2018, 01:07 AM
  2. VBA code not working on Mac machine running Excel 2011 (works fine on Windows!)
    By LochWulf in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-19-2016, 11:25 PM
  3. Excel 10 crashes under Windows 10 after running VBA code
    By eadamy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-31-2015, 11:57 AM
  4. File problems when running Windows VBA code on an Apple OS
    By jeh35 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-04-2013, 04:10 AM
  5. Macros created in Windows XP not opening /working in Windows 7
    By Janane in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2012, 04:28 AM
  6. [SOLVED] lines in worksheet opened in Windows but created in Excel for Mac
    By Jaws125 in forum Excel General
    Replies: 3
    Last Post: 06-22-2006, 08:15 PM
  7. [SOLVED] Opening Excel files that were created on a Mac in Windows
    By neil in forum Excel General
    Replies: 1
    Last Post: 03-01-2006, 03:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1