+ Reply to Thread
Results 1 to 8 of 8

Macro created in 32-bit not working in 64-bit system

  1. #1
    Forum Contributor
    Join Date
    11-29-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    101

    Macro created in 32-bit not working in 64-bit system

    Hi Everyone,

    I am in need of a favour. Recently we migrated our office system to 64-bit. We have bunch of VBA macros that were created in 32-bit system. After our migration, I tried to run them. Initially I was getting issue in declaring function and after using Ptrsafe it got resolved.

    Now the real issue occurs in coding. I have declared two variables here. one for Mainframe and other for webscreen -

    Please Login or Register  to view this content.
    I am taking mainframe session name from the excel cell.

    Please Login or Register  to view this content.
    as soon as control enters the above line, its throwing "Run-Time error '429': ActiveX Component Can't Create Object"

    I tried checking references and all seems to be ticked. I am helpless here.
    Could you please help me in resolving this issue. Please let me know if you need any more details. Thank you very much in advance.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Macro created in 32-bit not working in 64-bit system

    It sounds like you are using a dll that is not compatible with 64bit Office. You will need to try and get a 64bit version from the supplier.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Contributor
    Join Date
    11-29-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: Macro created in 32-bit not working in 64-bit system

    Quote Originally Posted by xlnitwit View Post
    It sounds like you are using a dll that is not compatible with 64bit Office. You will need to try and get a 64bit version from the supplier.
    Thank you. so I will give a try to install MS office for 64-bit version and try again.

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Macro created in 32-bit not working in 64-bit system

    I thought you were already using 64bit Office? I mean you need a 64bit version of whichever reference the AutSess and Webscreen objects are from.

  5. #5
    Forum Contributor
    Join Date
    11-29-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: Macro created in 32-bit not working in 64-bit system

    Yes. you are right. MS office is 64-bit. I got what you are saying. I am trying to find which reference maps to AutSess & Webscreen

  6. #6
    Valued Forum Contributor
    Join Date
    02-06-2014
    Location
    N/A
    MS-Off Ver
    N/A
    Posts
    373

    Re: Macro created in 32-bit not working in 64-bit system

    The issue you are running into with 3rd party DLL compatibility has been the only reason I have not migrated to 64 bit office, it's a shame

  7. #7
    Forum Contributor
    Join Date
    11-29-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: Macro created in 32-bit not working in 64-bit system

    I tried all possible solutions. There was no missing reference. reinstalled MS office. But no luck. So I have downgraded MS office from 64bit package to 32bit package. And everything back to normal after that. So as of now its the only possible way to run the macros

  8. #8
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    511

    Re: Macro created in 32-bit not working in 64-bit system


+ 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. [SOLVED] macro created buttons not working, random numbers not random
    By dareeldill in forum PowerPoint Programming
    Replies: 4
    Last Post: 07-01-2017, 09:16 AM
  2. Replies: 5
    Last Post: 09-14-2016, 07:42 AM
  3. 32-bit Vba macro not working on a 64-bit system
    By Berto1 in forum Excel Programming / VBA / Macros
    Replies: 33
    Last Post: 06-08-2016, 04:09 AM
  4. Replies: 0
    Last Post: 06-22-2014, 04:18 PM
  5. InsertPhoto macro created with Excel 2003 not working when upgraded to 2007
    By tnieves in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-16-2012, 04:22 AM
  6. Named Ranges - Created by system?
    By Michael Beckinsale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-24-2006, 12:10 PM
  7. Code created in a Macro not working for a Command Button
    By Amber_D_Laws in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-13-2006, 06:40 PM

Tags for this Thread

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