+ Reply to Thread
Results 1 to 3 of 3

Compile error The code in this project must be updated for use on 64-bit systems.

  1. #1
    Registered User
    Join Date
    05-19-2016
    Location
    chennai
    MS-Off Ver
    2013
    Posts
    1

    Compile error The code in this project must be updated for use on 64-bit systems.

    Private Declare Function SetTimer Lib "user32" (ByVal hwnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long) As Long
    Private Declare Function KillTimer Lib "user32" (ByVal hwnd As Long, ByVal nIDEvent As Long) As Long



    while running the code getting the below error

    Compile error:

    The code in this project must be updated for use on 64-bit systems. Please review and update Declare statements and then mark them with the PtrSafe attribute.

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Compile error The code in this project must be updated for use on 64-bit systems.

    Please review and update Declare statements and then mark them with the PtrSafe attribute
    You know what has to be done - you should take the opportunity to learn what you need to do because this is not a one-off issue. You will see this more and more as time goes on.
    Last edited by cytop; 06-14-2017 at 06:50 AM.

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Compile error The code in this project must be updated for use on 64-bit systems.

    This site might also help making the conversions.

    http://www.jkp-ads.com/articles/apideclarations.asp
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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] Error in function Compile error: Can't find project or library
    By Motario1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-12-2013, 02:20 AM
  2. [SOLVED] Compile Error in Hidden Module and Compile Error: Can't find project or library
    By Taislin in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-10-2013, 07:03 PM
  3. [SOLVED] Compile Error: Can't find project or library (1 computer has the error, another does not?)
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 34
    Last Post: 06-28-2012, 12:09 PM
  4. Compile Error: Can't find project or library
    By gone83 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2011, 09:23 PM
  5. Compile error: The code in this project must be..
    By alphecca in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2011, 02:50 PM
  6. Replies: 2
    Last Post: 06-10-2006, 04:15 PM
  7. Compile error: Can't find project or library
    By Fred in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2006, 04:10 AM
  8. Compile Error: Can't Find Project or Library
    By BeckenhamDave in forum Excel General
    Replies: 0
    Last Post: 01-25-2006, 08:40 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