Hi Guys,
I'm kindly new to excel vba, and just learn how to use it this weekend because I need to use it to one of my client.
in my program, I need to export the data from third party software (scada software) to an excel.
it was working for a few line, but then an runtime error 9 "subscript out of range" occur. And from my reading, this error caused by "some object you tried to access by name cannot be found".
when i debug, the error was in this line:
NextRow = Cells(Workbooks("Test.xlsx").Worksheets("Sheet1").Rows.Count, 1).End(xlUp).Row + 1
and this is my full script:
Could someone please guide me?Please Login or Register to view this content.
Bookmarks