Advertisement
|
[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. |
||
| 09/03/2008 at 08:07AM PDT, ID: 23699501 |
|
[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: |
Imports Excel = Microsoft.Office.Interop.Excel
more code here that is not relevant
......
Dim xlApp As New Microsoft.Office.Interop.Excel.Application
Dim xlbook As Excel.Workbook
Dim misValue As Object = System.Reflection.Missing.Value
'xlApp = New Excel.ApplicationClass
xlbook = xlApp.Workbooks.Add(misValue)
Dim Sheet1 As New Excel.Worksheet
Dim Sheet2 As New Excel.Worksheet
Dim Sheet3 As New Excel.Worksheet
Dim Sheet4 As New Excel.Worksheet
Dim Sheet5 As New Excel.Worksheet
Dim Sheet6 As New Excel.Worksheet
'Dim oRng As Excel.Range
'xlapp.Visible = False
'Dim xlsheet As Excel.Worksheet = xlapp.ActiveSheet
Dim Excel As Object = CreateObject("Excel.Application")
If Excel Is Nothing Then
MsgBox("It appears that Excel is not installed on this machine. This operation requires MS Excel to be installed on this machine.", MsgBoxStyle.Critical)
Return
End If
'checks which is the last cell written in column C and writes the title TOTALS to next empty cell
Dim lngRow As Long
lngRow = xlApp.Workbooks(1).Worksheets("Sheet1").Cells(xlApp.Workbooks(1).Worksheets("Sheet1").rows.count, "B").end(Excel.XlDirection.xlUp).row + 1
xlApp.Workbooks(1).Worksheets("Sheet1").cells(lngRow, "B").FormulaR1C1 = "TOTALS"
|