vb Code:
Imports excel = Microsoft.Office.Interop.Excel
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim oExcel As excel.Application
Dim oBook As excel.Workbook
Dim oSheet As excel.Worksheet
With oSheet
'WORKING FINE
.PageSetup.Zoom = 65
'borders isn't a member of excel.Worksheet
.Borders(Microsoft.Office.Interop.Excel.XlBordersIndex.xlEdgeTop).LineStyle = Microsoft.Office.Interop.Excel.XlLineStyle.xlContinuous
.Range("A27").Value = "Hello"
'GIVING ERROR
'value isn't a member of excel.Worksheet.Cells
.Cells(1, 1).value = "Hello"
'Font isn't a member of excel.Worksheet.Rows
.Rows("60:60").Font.Bold = True
'ColumnWidth isn't a member of excel.Worksheet.Columns
.Columns("A:Z").ColumnWidth = 8.0
End With
End Sub
End Class