Private Sub printstar()
dim i as integer
For i = 7 To 0 Step -1
For j = 0 To 7
If j >= i Then Debug.Print "*" Else Debug.Print " "
Next
Debug.Print Char(13) ' 输出回车键
Next
End Sub
下列代码打印在窗体上:新建一个Form就OK
Private Sub Form_Load()
Me.AutoRedraw = True
Me.Font.Name = "宋体"
Dim i As Integer
For i = 1 To 7
Print String$(7 - i, " ") & String$(i, "*")
Next
End Sub