|
本帖最后由 q8254733 于 2024-10-8 16:42 编辑
九年级首字母填空100题打印稿答题卡.zip
(29.64 KB, 下载次数: 2)
- Sub InsertTableAndFillSequence()
- Dim doc As Document
- Dim tbl As Table
- Dim i As Integer, j As Integer
- Dim seq As Integer
-
- Selection.TypeText Text:="学号_______姓名__________得分__________"
- Selection.HomeKey Unit:=wdLine
- Selection.EndKey Unit:=wdLine, Extend:=wdExtend
- Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
- Selection.Font.Name = "Microsoft YaHei Light"
- Selection.Font.Size = 13
- Selection.MoveRight Unit:=wdCharacter, Count:=1
- Selection.TypeParagraph
- Selection.TypeText Text:="答题卡"
- Selection.HomeKey Unit:=wdLine
- Selection.EndKey Unit:=wdLine, Extend:=wdExtend
- Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
- Selection.Font.Name = "Microsoft YaHei Light"
- Selection.Font.Size = 12
- Selection.MoveRight Unit:=wdCharacter, Count:=1
- Selection.TypeParagraph
-
- seq = 1
- Set doc = ActiveDocument
- Set tbl = doc.Tables.Add(Range:=Selection.Range, NumRows:=25, NumColumns:=8)
- tbl.Select
- Selection.Font.Size = 9
- For a = 1 To 4
- For i = 1 To 25
- tbl.Cell(i, a * 2 - 1).Range.Text = seq & "."
- seq = seq + 1
- Next i
- Next a
- Selection.Tables(1).Style = "网格型"
-
- End Sub
复制代码
|
评分
-
1
查看全部评分
-
|