在成绩录入-初三-导入成绩中,用以下按钮公式:
ClearGrid("初三") And Do(6) And OpenGrid("Sheet1") And DelFor("年级","班级", "=" ,"") And CopyRows("sheet1","班级", "<>" ,"") And OpenGrid("初三") And DelFor(GridName,"姓名", "=" ,"") And SortCol(GridName,"语文",2) And EvalFor(GridName,"语文排序","If(Row = 1,1,If(Cell(Row-1,""语文"") = [语文],Cell(Row-1,""语文排序""),Cell(Row-1,""语文排序"") + 1))") And SortCol(GridName,"数学",2) And EvalFor(GridName,"数学排序","If(Row = 1,1,If(Cell(Row-1,""数学"") = [数学],Cell(Row-1,""数学排序""),Cell(Row-1,""数学排序"") + 1))") And SortCol(GridName,"英语",2) And EvalFor(GridName,"英语排序","If(Row = 1,1,If(Cell(Row-1,""英语"") = [英语],Cell(Row-1,""英语排序""),Cell(Row-1,""英语排序"") + 1))") And SortCol(GridName,"物理",2) And EvalFor(GridName,"物理排序","If(Row = 1,1,If(Cell(Row-1,""物理"") = [物理],Cell(Row-1,""物理排序""),Cell(Row-1,""物理排序"") + 1))") And SortCol(GridName,"化学",2) And EvalFor(GridName,"化学排序","If(Row = 1,1,If(Cell(Row-1,""化学"") = [化学],Cell(Row-1,""化学排序""),Cell(Row-1,""化学排序"") + 1))") And SortCol(GridName,"政治",2) And EvalFor(GridName,"政治排序","If(Row = 1,1,If(Cell(Row-1,""政治"") = [政治],Cell(Row-1,""政治排序""),Cell(Row-1,""政治排序"") + 1))") And SortCol(GridName,"历史",2) And EvalFor(GridName,"历史排序","If(Row = 1,1,If(Cell(Row-1,""历史"") = [历史],Cell(Row-1,""历史排序""),Cell(Row-1,""历史排序"") + 1))") And SortCol(GridName,"班级",1) And RemoveGrid("sheet1") And RemoveGrid("sheet2") And RemoveGrid("sheet3") AndOpenGrid("初三") And SetLabel("","导入完毕!")
怎么不能完成任务哟,谢谢高手帮忙改一下。估计是公式错了。管理员密码是888
[此贴子已经被作者于2012-10-13 22:40:05编辑过]