|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| 10/15/2009 at 05:56PM PDT, ID: 24816859 |
|
[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: 55: 56: 57: 58: |
Public Function GetJobRoles()
Dim xlsApp As Excel.Application
Dim xlsBook As Excel.Workbook
Dim xlsSheet As Excel.Worksheet
Dim strWorkbook As String
Dim strWorksheet As String
Dim rngData As Excel.Range
Dim strFirstCell As String
Dim strPath As String
Dim strCompetency As String
Dim blnLast As Boolean
Const strProcedure As String = "GetJobRoles"
10 On Error GoTo ErrorHandler
20 Set xlsApp = New Excel.Application
30 xlsApp.Visible = True
40 strWorksheet = "Role Competency Achievement"
50 strPath = "C:\Users\Todd\Desktop\ExcelForms\Accounting\Accounting_Assistant_Performance_Review_Form.xls"
60 Set xlsBook = xlsApp.Workbooks.Open(strPath)
70 With xlsBook
80 Set xlsSheet = .Sheets(strWorksheet)
90 xlsSheet.Activate
100 Set xlsSheet = ActiveSheet
110 strFirstCell = "$B$8"
120 Set rngData = ActiveSheet.Range(strFirstCell)
130 rngData.Select
140 blnLast = False
150 Do Until blnLast
160 strCompetency = rngData.Value
170 If strCompetency = "OVERALL PERFORMANCE:" Then
180 blnLast = True
190 Else
200 Debug.Print strCompetency
210 rngData.Offset(1, 0).Select
220 End If 'If strCompetency = "OVERALL PERFORMANCE:"
230 Loop 'Do Until blnLast
240 xlsBook.Close savechanges:=False
250 End With 'With xlsBook
ExitFunction:
260 On Error Resume Next
270 xlsBook.Close savechanges:=False
280 Set xlsBook = Nothing
290 xlsApp.Quit
300 Set xlsApp = Nothing
310 On Error GoTo 0
320 Exit Function
ErrorHandler:
330 Debug.Print Err.Description, Err.Number, Erl
340 MsgBox Err.Description & ", " & Err.Number & "," & Erl
350 Resume ExitFunction
End Function
|
Advertisement