Simple Excel Script Fails

activate application "Microsoft Excel"
tell "Microsoft Excel"
	return active sheet
end tell

This gives error “Expected End of Line But Found Identifier”
Im obviously missing something really simple, but can’t figure out what.

You need “application” in your tell block.


activate application "Microsoft Excel"
tell application "Microsoft Excel"
	return active sheet
end tell