Hi ,
I have been trying to autofill dates of the month for a particular sheet, but it throws me this error Method Range of object '_Global' failed.
The following code snippet is what iam using
'Fill in the Dates for the Month in the first column
objExcelRep.Worksheets("DataMatrix").Cells(intCellIndexRow, 1) = Month(Date) & "/01/" & Year(Date)
objExcelRep.Worksheets("DataMatrix").Cells(intCellIndexRow, 1).Select
strRange = "A" & intCellIndexRow & ":A" & intCellIndexRow + MonthNoOfDays - 1
Selection.AutoFill Destination:=Range(strRange), Type:=xlFillDays
Am i missing something?
Thanks,
John
Bookmarks