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!