+ Reply to Thread
Results 1 to 8 of 8

Two VBA Functions working fine with Win XP but not working with Win 7

  1. #1
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    Two VBA Functions working fine with Win XP but not working with Win 7

    Hi everyone,

    I have the following functions, which work just fine with with Win XP but when I transferred to Win 7, they both didn't work:

    1- Getting Win Version:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    2- Getting IP Address:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I hope that you can help me in this case,

    Regards,
    Last edited by LoveCandle; 07-01-2013 at 04:58 PM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Two VBA Functions working fine with Win XP but not working with Win 7

    Are you using the 64-bit Excel/Office?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    Re: Two VBA Functions working fine with Win XP but not working with Win 7

    I am using Win 7 EnterPrise 32-bit and MS Office 2010

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

    Re: Two VBA Functions working fine with Win XP but not working with Win 7

    Hello LoveCandle,

    I am looking at this code and have to ask where did you get it. It is a mess. The API call is wrong and there are many synbtax errors in the VBA code. I am working on the corrections right now.
    Last edited by Leith Ross; 06-30-2013 at 03:24 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!)

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

    Re: Two VBA Functions working fine with Win XP but not working with Win 7

    Hello LoveCandle,

    Here is the corrected code. This function will return the OS version as a text string.

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    Re: Two VBA Functions working fine with Win XP but not working with Win 7

    Hi everyone,

    I got the code from the following webpage:

    http://access.mvps.org/access/api/api0055.htm

    Thank you very much for correcting the code.

    However, what about IP Address Code??

    Please Login or Register  to view this content.
    Last edited by LoveCandle; 07-01-2013 at 03:37 AM.

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

    Re: Two VBA Functions working fine with Win XP but not working with Win 7

    Hello LoveCandle,

    Here is the second macro. If the URL is left blank, the IP address for the local computer is returned.

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    Re: Two VBA Functions working fine with Win XP but not working with Win 7

    Thank you very very much Leith Ross for the big effort you have exhausted to help me,

+ 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