|
-
VB.NET Update Excel
I am trying to use variable in excel cell, my code works only when I put explicit range. Here is sample of code
Dim oXL As Excel.Application
Dim oWB As Excel.Workbook
Dim oSheet As Excel.Worksheet
Dim sSPC_BPC(2) As String
Dim sBPC(1, 4) As Integer
'The line of code below does not show any values in excel although when I try to look at this cell oSheet.Cells(sBPC(0, 0), sBPC(0, 1)) in Debug mode I could see value.
oSheet.Cells(sBPC(0, 0), sBPC(0, 1)) = sSPC_BPC(0)
' This code below works OK
oSheet.range("D5").value = sSPC_BPC(0)
Appreciate your help in advance!
Similar Threads
-
By OwenDavies in forum VB Classic
Replies: 0
Last Post: 03-09-2006, 08:40 PM
-
Replies: 0
Last Post: 01-31-2006, 01:07 PM
-
Replies: 0
Last Post: 01-25-2006, 01:41 PM
-
By Alwin in forum Database
Replies: 0
Last Post: 05-07-2002, 08:34 PM
-
Replies: 214
Last Post: 06-01-2001, 07:27 AM
Tags for this Thread
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks