Hi Emmanuel,
It's been a while that I even touched Excel, but this example (found here) works like a charm for me on my Mac:
tell application "Microsoft Excel"
tell active sheet
set headRange to range "A1:F1"
set value of headRange to {{"Date", "Weight", "Steps", "Miles", "Shoes", "Comments"}}
set keyRange to "A1"
set curr to current region of cell "A1"
set {maxRows, maxColumns} to {count rows, count columns} of curr
set moreData to {{2, 3, 4, 5, 6}, {2, 3, 4, 5, 6}}
repeat with newData in moreData
-- next new row
set maxRows to maxRows + 1
-- specify date column, other data columns
set colDate to "A:A"
set colRange to "B:F"
set rowRow to maxRows & ":" & maxRows as text
set WalkDate to the text returned of (display dialog "Enter date" default answer "12/10/21")
-- enter date into A of new row
set value of (intersect range1 colDate range2 rowRow) to WalkDate
-- select B:F of new row
-- select (intersect range1 colRange range2 rowRow)
set value of (intersect range1 colRange range2 rowRow) to newData
end repeat
end tell
end tell
Make sure Excel is open and has an active Excel file / Sheet open.
From this we can learn how to set a cell. Short version:
tell application "Microsoft Excel"
tell active sheet
set value of cell "A2" to "Some random text"
end tell
end tell
Both worked on my Mac with Excel that comes with Office 265 (Version 16.86 (24060916) - 2024).
Hope this helps 😊