运行结果

ComboBox1
vb for循环 combobox的使用 Print的使用
ComboBox2
vb for循环 combobox的使用 Print的使用

代码

可以由大到小输出:
vb for循环 combobox的使用 Print的使用
正常顺序输出:
vb for循环 combobox的使用 Print的使用
可复制:

Private Sub Command1_Click()
    
    '步长缺省为1
    Dim i As Integer
    For i = 0 To 12
        Combo1.AddItem i & "月"
    Next i
    
    '偶数月
    For i = 0 To 13 Step 2
        Combo2.AddItem i & "月"
    Next i

End Sub

关于print
print从最左侧开始,并且自动换行
vb for循环 combobox的使用 Print的使用
vb for循环 combobox的使用 Print的使用

相关文章:

  • 2022-12-23
  • 2021-05-30
  • 2022-02-09
  • 2021-12-15
  • 2021-09-08
  • 2022-01-03
  • 2022-12-23
  • 2021-09-15
猜你喜欢
  • 2021-07-24
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2021-12-15
  • 2021-05-23
  • 2021-10-28
相关资源
相似解决方案