I have about 400 rows of information in excel and I want the script to add information to the next available open row. I don’t know how to tell applescript to find a blank or empty cell. I’ve been trying many variations in an attempt to figure it out, and here is one of those scripts:
tell application "Microsoft Excel"
activate
tell worksheet "all" of workbook "2_Stock Overview.xlsx"
activate
select range "B3"
set FoundRow to false
try
set FoundCell to {find range "B3:B372" what " "}
set FoundRow to true
delete entire row of FoundCell
end try
set i to 1
repeat while i ≤ 10000
set FoundRow to false
set FoundCell to {find range "B3:B372" what " "}
set FoundRow to true
delete entire row of FoundCell
set i to i + 1
end repeat
end tell
end tell