Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read Licence number with VBA

Status
Not open for further replies.

MarkWright

Programmer
Jan 7, 2003
66
DE
Hello, I am trying to write a program that reads the Licence number from the given System. I have been trying with "Environ" but am having no luck. I can read everything I need , user, system, computer name etc. but I can not get the licence number to show. Just the coded number that is shown in the reg.
Thanks for your time
Mark
 
Dunno if this is exactly what you're looking for as it doesn't match the Product ID shown in Help>About

Code:
MsgBox Application.ProductCode

If it is the product ID you require it should be readable from the registry. However, if you don't know how to do that it will take someone better than me to tell you!

;-) If a man says something and there are no women there to hear him, is he still wrong? [ponder]
 
Hello, thanks but the number shown in the registry is coded and is not the 5 digit 5 field code that is given. Thanks anyway
Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top