Login   /   Register

List service data in a spreadsheet

Rate this article
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...
April 1st, 2008 by daniva

Local Search Results

You arrived here after searching for the following phrases:

Click a phrase to jump to the first occurrence, or return to the search results.

Demonstration script that displays the various colors — and their related color index — available when programmatically controlling Microsoft Excel

Set excel = CreateObject( "Excel.Application" )
With excel
   .Visible = True
   .Workbooks.Add
End With
x = 1
Set wmiService = GetObject( "winmgmts:root\cimv2" )
Set colServices = wmiService.ExecQuery( "Select * From Win32_Service" )
For Each service in colServices
   excel.Cells( x, 1 ) = service.Name
   excel.Cells( x, 2 ) = service.State
   x = x + 1
Next    

Posted in MS-Excel

Leave a Reply

You must be logged in to post a comment.

This article was viewed 351 times