Hi all,
i have code to get my hdd serial number then code in the Workbook Open, this works fine although what i am wanting to do is have this code check the hdd number and display a msgbox that says hdd serial verified, and also show another msgbox that says serial number not valid then shuts the workbook is this possible. as it is it just closes the workbook if the serial number doesnt match..please see my code below...this code is in the workbook open.
i have code to get my hdd serial number then code in the Workbook Open, this works fine although what i am wanting to do is have this code check the hdd number and display a msgbox that says hdd serial verified, and also show another msgbox that says serial number not valid then shuts the workbook is this possible. as it is it just closes the workbook if the serial number doesnt match..please see my code below...this code is in the workbook open.
Code:
If CreateObject("Scripting.FileSystemObject").GetDrive("C:\").SerialNumber <> "1012000350" Then Application.Quit