|
-
Sep 11th, 2002, 11:26 PM
#1
Thread Starter
Hyperactive Member
VB.NET to VC#
Dim a As New Excel.Application()
Dim wb As Excel.Workbook
Dim ws As Excel.Worksheet
wb = a.Workbooks.Open("C:\book1.xls")
ws = wb.Worksheets.Item(1)
With ws
'populate titles
.Cells(1, 1).value = "Date"
.Cells(1, 2).value = "Location"
.Cells(2, 1).value = YOUR STRING VALUE
.Cells(2, 2).value = YOUR STRING VALUE
I need the above code converted to VC#. Can anyone help me with this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|