Can some help me with this one. I am getting and Unknown runtime error. Here is the line it errors out at
objXL.Cells(count,1).Value = aSoftware
Here is the code
Set objXL = WScript.CreateObject("Excel.Application")
objXL.Visible = False
objXL.Workbooks.Add
objXL.DisplayAlerts = False
objXL.Worksheets(1).Name="Software List"
objXL.Cells(1,1).Value = "Application Name"
objXL.Cells(1,2).Value = "Install Count"
objXL.Range("A1:B1").Select
objXL.Selection.Font.Bold = True
objXL.Selection.Interior.ColorIndex = 9
objXL.Selection.Interior.Pattern = 1 'xlSolid
objXL.Selection.Font.ColorIndex = 2
For Each aSoftware In dicSoftware
objXL.Cells(count,1).Value = aSoftware
objXL.Cells(count,2).Value = dicSoftware.Item(aSoftware)
count = count + 1
Wscript.Echo aSoftware & "=" & dicSoftware.Item(aSoftware)
Next
I know there are values int eh dictonary object
Thanks
objXL.Cells(count,1).Value = aSoftware
Here is the code
Set objXL = WScript.CreateObject("Excel.Application")
objXL.Visible = False
objXL.Workbooks.Add
objXL.DisplayAlerts = False
objXL.Worksheets(1).Name="Software List"
objXL.Cells(1,1).Value = "Application Name"
objXL.Cells(1,2).Value = "Install Count"
objXL.Range("A1:B1").Select
objXL.Selection.Font.Bold = True
objXL.Selection.Interior.ColorIndex = 9
objXL.Selection.Interior.Pattern = 1 'xlSolid
objXL.Selection.Font.ColorIndex = 2
For Each aSoftware In dicSoftware
objXL.Cells(count,1).Value = aSoftware
objXL.Cells(count,2).Value = dicSoftware.Item(aSoftware)
count = count + 1
Wscript.Echo aSoftware & "=" & dicSoftware.Item(aSoftware)
Next
I know there are values int eh dictonary object
Thanks