Advertisement
Advertisement
| 02.21.2008 at 04:50AM PST, ID: 23180882 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: |
'Add data to Excel file
'================================================================================================
strExcelPath = "C:\Test.xls"
Set objExcel = CreateObject("Excel.Application")
Const xlUp = -4162
Set objWB = objExcel.Workbooks.Open(strExcelPath, False, False)
objExcel.Visible = True
'Loop through all application in farm
For Each anApp In theFarm.Applications
if Err.Number <> 0 Then
WScript.Echo "Can't enumerate applications"
WScript.Echo "(" & Err.Number & ") " & Err.Description
WScript.Echo ""
WScript.Quit Err.Number
End if
anApp.LoadData(TRUE)
' Set objwsheet = ExcelAddSheet(anApp.AppName)
Set objWS = objWB.Sheets(anApp.AppName)
intNextRow = objWS.Cells(65536, "A").End(xlUp).Row + 1
objWS.Cells(intNextRow, "A").Value = anApp.AppName
objWS.Cells(intNextRow, "B").Value = anApp.Sessions.Count
objWS.Cells(intNextRow, "C").Value = DatePart("h", Now) & ":" & DatePart("n", Now)
objWS.Cells(intNextRow, "D").Value = DatePart("d", Now)
objWS.Cells(intNextRow, "E").Value = DatePart("m", Now)
objWS.Cells(intNextRow, "F").Value = DatePart("yyyy", Now)
objWS.Cells(intNextRow, "G").Value = Date()
Next
objWB.Save
objWB.Close
objExcel.Quit
Set objWS = Nothing
Set objWB = Nothing
Set objExcel = Nothing
'Functions
'=======================================================================
Function ExcelAddSheet(Name)
Set ws = objwb.Sheets.Add
ws.Name = Name
Set ExcelAddSheet = ws
End Function
|