Excel := ComObjCreate("Excel.Application")
Excel.Visible := True
file := "C:\Users\User\Desktop\ExcelFile.xlsx" ; Path to an existing file
Excel.Workbooks.Open(file) ; Open the file
; Loop through the A column of cells until a blank cell is encountered
while (Excel.Range("A" . A_Index).Value != "") {
text := Excel.Range("A" . A_Index).Value
}