Trying to run the following VBScript:
Set ObjExcel = createobject("Excel.Application")
Set objWb = objExcel.Workbooks.Open("C:\test.xlsx")
Set objSheet = objWb.Worksheets("Sheet1")
objSheet.Cells(1,1).Select
With ActiveCell.Font
.Bold = True
.Italic = True
End With
Throwing an error as follows:
Line: 7 Char: 1 Error: Object Required: 'ActiveCell' Codes: 800A01A8 Source: Microsoft VBScript runtime error
So it ain't linking ActiveCell. I have spent hours on this and searched a lot of similar issue's online with no luck, any suggestions? Thanks in advance.
ActiveCellwill be interpreted as an object in your script without any declaration. - Reporter