Excel := ComObjCreate("Excel.Application")
Excel.Visible := True
file := "C:\Users\User\Desktop\ExcelFile.xlsx" ; Path to file
Excel.Workbooks.Open(file) ; Open the file
Excel.Range("A1").Value := "hello world!" ; Set cell 'A1' to the value
Excel := ComObjCreate("Excel.Application")
Excel.Visible := True
file := "C:\Users\User\Desktop\ExcelFile.xlsx" ; Path to file
Excel.Workbooks.Open(file) ; Open the file
Excel.Range("A1").Value := "hello world!" ; Set cell 'A1' to the value