(1)99乘法表,以及为此表修改格式
Sub test()
For x = 1 To 10
For y = 1 To 10
Cells(x, y).Value = x & "*" & y & "=" & x * y
Next y
Next x
End Sub
Sub test2()
Dim cell As Variant
Worksheets(1).Select
For Each cell In Range("a1:j10")
cell.Font.Size = 18
Next
End SubPrivate Sub UserForm_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single)
If Button = xlPrimaryButton Then
test
End IfIf Button = xlSecondaryButton Then
test2
End IfEnd Sub
【待续】
相关文章:
- Excel中vba教程——设置行高实例 2021-09-17
- vba 工作案例1 2021-09-27
- VBA 库存管理案例 2021-12-12
- VBA字典(详解,示例) 2021-12-28
- 循序渐进VBA EXCEL数据操作小实例 2021-09-13
- 递归(VBA实现) 2022-12-23
- 添加、删除连接(Join)和关联(Relate)VBA实例 2021-11-12
- VBA实现Excel转DBC 2021-07-09