logo ASAP Utilities

Excel tip: Getting the processor speed

Date: 13 january 2002

The following code will show you the processor name and speed of you computer. The code has been posted in the Microsoft Excel Developers List by by Julian Milano.
This code uses Windows Management Instrumentation (WMI), which was introduced in Windows 2000.

Sub ProcessorSpeed()
' shows the processor name and speed of the computer
      Dim MyOBJ                              As Object
      Dim cpu                                As Object
      Set MyOBJ = GetObject("WinMgmts:").instancesof("Win32_Processor")
      For Each cpu In MyOBJ
            MsgBox cpu.Name & " " & cpu.CurrentClockSpeed & " Mhz", vbInformation
End Sub

« back

Home Privacy Policy Cookie Policy EULA Sitemap Search List of all utilities Printer friendly page Contact Us ^ Back to Top
© 1999-2021 - - - - The Netherlands

Connect with us and receive our tips that show you how to benefit from the tools in ASAP Utilities at:
Follow us on TwitterFollow us on Facebook