+ Reply to Thread
Results 1 to 7 of 7

SystemMetrics to work in Office 64 bits...

  1. #1
    Forum Contributor
    Join Date
    06-25-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    201

    SystemMetrics to work in Office 64 bits...

    Hi... I have a worksheet that has this code:
    Please Login or Register  to view this content.
    This code runs perfectly in every office versions 2007/10/13. But today i tryed to opens the workbook in a windows 7 ultimate 64 bits and the follwing error came up: "Compile error in hidden module: module1" -> Module 1 is where i have this code.

    So i started looking on google for this error and came up with a error from the 64 bit version and the built up version of the workbook. So i checked on google through SystemMetrics32 for 64 bits and in some pages they say that for 64 bits excel versions, the code line had to be replaced for this:
    Please Login or Register  to view this content.
    The thing is i dont know how to had this to my previous code and make it in a way that it would work on every version 32/64 bits.

    Can anyone help please?

    thank you.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: SystemMetrics to work in Office 64 bits...

    perhaps
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Contributor
    Join Date
    06-25-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    201

    Re: SystemMetrics to work in Office 64 bits...

    @JosephP

    Thank you for your response... But i i'm not sure how to add this/replace to my actual code :/

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: SystemMetrics to work in Office 64 bits...

    it replaces your declarations-you should not need the 16bit version for 2007+ versions of excel

  5. #5
    Forum Contributor
    Join Date
    06-25-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    201

    Re: SystemMetrics to work in Office 64 bits...

    But how i put this in my code? Sorry but i dont build VBA code from scratch. I just go and add things and try but in this case i don't know how to replace this, because the THEN and ELSE are in Sub Display Video Info. And how do i change my declarations without changing this too? Thats why i dont get it...
    Perhaps something like this?:
    Please Login or Register  to view this content.
    Don't know how to build it :/

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: SystemMetrics to work in Office 64 bits...

    replace your complete code with
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    06-25-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    201

    Re: SystemMetrics to work in Office 64 bits...

    @JosephP

    i'll try this way you gave and then i'll post it back the results.
    Thank you very much.
    When i test it if it works (bet it will do) i'll close the thread.

+ 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