Consulting

Results 1 to 5 of 5

Thread: Macro to get HD info or computer name?

  1. #1

    Macro to get HD info or computer name?

    Anyone know the command in excel to get the hard driver serial #.
    or maybe even the computer name?

    Thanks,
    John.

  2. #2
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    Try this:


    MsgBox Environ("COMPUTERNAME")
    MsgBox Environ("HOMEDRIVE")

    Not sure about the serial number for the hard drive.

  3. #3

  4. #4
    Thanks guys for the quick reply. This worked like a charm.

    John.

  5. #5
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    Glad to help.

    Take Care

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •