Microsoft Excel 스프레드 시트를 정리하는 아주 간단한 스크립트가 있습니다. 그것은 내 컴퓨터에서 완벽하게 작동하지만, 동료에게 보내려고하면 그 사람에게는 효과가 없었습니다. 여기에 코드입니다 : 내 동료가이 스크립트를 실행하려고 할 때, 그는 다음과 같은 오류받은 이 스크립트는 내 컴퓨터에서 작동하지만 다른 컴퓨터에서는 작동하지 않는 이유는 무엇입니까?
tell application "Microsoft Excel"
tell worksheet "Sheet1" of active workbook
delete column 22
delete column 21
delete column 20
-- this continues until column 1
delete column 1
end tell
tell worksheet "Sheet1" of active workbook
set value of cell "E27" to "=D27-2500"
set value of cell "E28" to "=D28-2500"
-- this continues a number of times as well
set value of cell "E58" to "=D58-2500"
set value of cell "F3" to "MEAN"
set value of cell "G3" to "MEDIAN"
set value of cell "H3" to "ST DEV"
end tell
end tell
:
error "Microsoft Excel got an error: Can’t set «class pval» of cell \"E27\" of «class cXLW» \"Sheet1\" to \"=D27-2500\"." number -10006 from «class pval» of cell "E27" of «class cXLW» "Sheet1"
는 또한, 자신의 애플 스크립트 편집기 코드를 변경을, 같은 그
delete column 22
는
«event XCELdelo» column 22
로 변신 0
및
set value of cell "E27" to "=D27-2500"
어떻게이 스크립트는 내 동료의 컴퓨터에서 작동하도록 할
set «class pval» of cell "E27" to "=D27-2500"
로 변신?
컴퓨터 및 Excel 버전에 대한 자세한 내용을 제공해야합니다. –