+ Reply to Thread
Results 1 to 3 of 3

change in VBA code to make it compatibile with 64-bit

  1. #1
    Forum Contributor
    Join Date
    01-13-2009
    Location
    Mumbai
    MS-Off Ver
    Excel 2003, 2007
    Posts
    168

    change in VBA code to make it compatibile with 64-bit

    Please Login or Register  to view this content.
    It gives me a problem saying:
    The code must be updated to be used on 64-bit.
    Please review and update the declare statement and mark them with the PtrSafe attribute

    Does any one know about this problem. I have used the above code for a browse button on my userform.

    Attached is the image of the error.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    08-29-2012
    Location
    In lockdown
    MS-Off Ver
    Excel 2010 (2003 to 2016 but 2010 for choice)
    Posts
    1,766

    Re: change in VBA code to make it compatibile with 64-bit

    I have also experienced problems with converting VBA to 64 bit. .. http://www.excelforum.com/excel-prog...api-calls.html

    A google search will throw up pages about changing the Declare Functions and using LongPtr and LongLong instead of Long but I have made these changes in my code and it still doesn't work.
    *******************************************************

    HELP WANTED! (Links to Forum threads)
    Trying to create reusable code for Custom Events at Workbook (not Application) level

    *******************************************************

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: change in VBA code to make it compatibile with 64-bit

    Hello Vai,

    Here is the 64 bit API code. This example will open a dialog to the "Computer" node.

    Please Login or Register  to view this content.
    Last edited by Leith Ross; 01-18-2013 at 02:32 PM.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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