+ Reply to Thread
Results 1 to 9 of 9

Code update for 64 bit

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Code update for 64 bit

    Hello:

    I have been using below code in VBA module on 64 bit system without any problem.
    Now I ma trying to use the same code for another 64 bit system but it giving error as attached.
    Please help me with this issue.

    Let me know if any questions..
    Thanks
    Riz

    Please Login or Register  to view this content.
    Attached Images Attached Images
    Last edited by rizmomin; 06-17-2015 at 12:55 PM.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Code update for 64 bit

    64 bits sys must have the PTRSAFE word in function declaration

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Code update for 64 bit

    Hi ranman256:

    Can you please explain me where in the above code i need to add your code.
    Thanks a lot
    Riz

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,411

    Re: Code update for 64 bit

    I think you might be confusing 64 bit Windows and 64 bit Excel. I suspect the first system is using 32 bit Excel and the second is using 64 bit Excel. Bothe computers can be running 64 bit Windows.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Code update for 64 bit

    Hi TMS:

    You are absolutely correct.
    Both PC's are 64 bit.
    One has 32 bit Office and other has 64 Bit office.
    The above posted code works with no problem for 32 bit office computer.
    I need to change the code so that it can be used for both pc.
    Let me know if any questions.
    Riz

  6. #6
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Code update for 64 bit

    Hello ranman256 and others:

    I have done some progress with the below code and now i am getting 1 error as attached at IF Win64 Then..
    I believe we need a statement for Office 64 bit ie IF Office64 instead of Win64 but does not work.
    Please help to rectify.
    Thanks
    Riz

    Please Login or Register  to view this content.
    Attached Images Attached Images

  7. #7
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Code update for 64 bit

    the if statements in Declare function must have the "#" in front just like ranman256 posted.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  8. #8
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Code update for 64 bit

    Maybe try this updated code:

    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Code update for 64 bit

    Hi Arkadi:

    Works great.
    Thanks a lot
    Riz

+ 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. Need code to update
    By superchew in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2015, 11:22 PM
  2. [SOLVED] How to get this code to update for new sites?
    By Inti in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2014, 12:03 PM
  3. Userfor VBA code update
    By Damian37 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-03-2014, 09:30 AM
  4. [SOLVED] VB Code help to change/update existing code
    By JDobbsy1987 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-24-2013, 04:46 PM
  5. VBA code does not update
    By nav505 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-12-2013, 10:30 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