How to Read Last Row Of MS Excel

cheer

Registered User.
Local time
Tomorrow, 05:47
Joined
Oct 30, 2009
Messages
222
I already have the below codes. Anyone know how to read the last row of MS Excel ?

Dim xl As Excel.Application
Dim xlWrkSht As Excel.Worksheet
Dim xlWrkBk As Excel.Workbook

Set xl = CreateObject("Excel.Application")
Set xlWrkBk = GetObject(strBOMExcelFilePath)
Set xlWrkSht = xlWrkBk.Worksheets(1)
 

Users who are viewing this thread

Back
Top Bottom