利用VBA对word操作自动评分提高课堂实效性研究(第3页)
本文共计6393个字,预计阅读时长22分钟。【 字体:大 中 小 】
⑴ 将标题“计算机的发展趋势”,设为华文行楷、二号、天蓝色字。(2分)
If ActiveDocument.Paragraphs.Count >= 1 Then
ActiveDocument.Paragraphs(1).Range.Select
If Selection.Font.Name=“华文行楷”And Selection.Font.Size=22 And Selection.Font.Color=wdColorSkyBlue Then
defen=defen+2如果正确则加2分
End If
End If
⑵ 将两个小标题,设为楷体、四号、加粗。(2分)
If ActiveDocument.Paragraphs.Count >= 4 Then
ActiveDocument.Paragraphs(2).Range.Select
If Selection.Font.Name=“楷体_GB2312”And Selection.Font.Size=14 And Selection.Font.Bold Then
ActiveDocument.Paragraphs(4).Range.Select
If Selection.Font.Name=“楷体_GB2312”And Selection.Font.Size=14 And Selection.Font.Bold Then
defen=defen+2如果正确则加2分
End If
End If
End If
⑶ 将两段正文,设为仿宋体、小四号、倾斜。(2分)
If ActiveDocument.Paragraphs.Count >= 5 Then
ActiveDocument.Paragraphs(3).Range.Select
If Selection.Font.Name="仿宋_GB2312" And Selection.Font.Size=12 And Selection.Font.Italic=True Then
ActiveDocument.Paragraphs(5).Range.Select
If Selection.Font.Name=“仿宋_GB2312”And Selection.Font.Size=12 And Selection.Font.Italic=True Then
defen=defen+2’如果正确则加2分
End If
End If
End If
⑷ 将标题居中。(2分)
If ActiveDocument.Paragraphs.Count >= 1 Then
ActiveDocument.Paragraphs(1).Range.Select
If Selection.ParagraphFormat.Alignment=1 Then
defen=defen+2 ’如果正确则加2分
End If
End If
⑸ 将正文内容首行缩进2字符,行距1.5倍。(2分)
If ActiveDocument.Paragraphs.Count >= 5 Then
ActiveDocument.Range(ActiveDocument.Paragraphs(2).Range.Start, ActiveDocument.Paragraphs(5).Range.End).Select
If Selection.ParagraphFormat.CharacterUnitFirstLineIndent=2 And Selection.ParagraphFormat.LineSpacingRule=wdLineSpace1pt5 Then
defen=defen+2如果正确则加2分
End If
End If
输出测评结果变量defen
MsgBox defen,“最终得分”
End Sub
四、设置共享,实现自动测评
这一步可以把“题目要求.doc”和“练习题.txt”两个文件放置在教师机的一个文件夹内,并把这个文件夹设为只读共享,学生便可以通过网络来访问教师机进行练习了。
本文仅以Word为例加以说明,实际上本方法适用于大多数Office文档的自动测评,如Excel、Powerpoint等。


经典毕业论文致谢信
优秀博士毕业论文致谢信范文
辽宁何氏医学院本科生毕业论文(设计)开题报告模板
优秀会计硕士毕业论文致谢信
优秀本科毕业论文致谢信模板
小学音乐论文参考文献范例
浅谈钢琴触键
浅谈奥德修斯与西方古典文学的人文主义传统
生物化学研究论文15篇(精)
生物化学研究论文15篇【精华】
2021年论文致谢词300字(通用6篇)
关于本科论文致谢(通用15篇)
舒曼歌曲中浪漫主义艺术特色
浅论音乐的节奏
浅谈音乐赏析让音乐走入学生的心灵
当前音乐教育存在的问题与对策论文(精选5篇)
音乐系毕业论文-分析巴赫BWV846的演奏技巧和艺术特征
“古典园林,精致江南”
古典分配理论探源
对古典文论的几句闲话