VBA入门
个人在工作中喜欢登记台账,一般使用excel,最近在使用一份excel的台账做总结的时候,发现普通的公式无法满足需求,故入坑vba,一发不可收拾。
把一些基本的vba语法记录一下,以备查。
变量定义
使用Dim声明
1 |
|
For
1 |
|
If
1 |
|
获取单元格或者区域
1 |
|
排序Sort
单元格样式.
VBA入门
http://blog.colorccm.com/2019/07/26/it/first_vba/
个人在工作中喜欢登记台账,一般使用excel,最近在使用一份excel的台账做总结的时候,发现普通的公式无法满足需求,故入坑vba,一发不可收拾。
把一些基本的vba语法记录一下,以备查。
变量定义
使用Dim声明
1 |
|
For
1 |
|
If
1 |
|
获取单元格或者区域
1 |
|
排序Sort
单元格样式.