Excel.VBA从入门到精通
时间:2025-04-04
时间:2025-04-04
目 录
一、VBA语言基础 ......................................................................................................................... 1
第一节 标识符 ..................................................................................................................................1
第二节 运算符 ..................................................................................................................................1
第三节 数据类型 ..............................................................................................................................1
第四节 变量与常量 ...........................................................................................................................1
第五节 数组 .....................................................................................................................................2
第六节 注释和赋值语句 ....................................................................................................................2
第七节 书写规范 ..............................................................................................................................2
第八节 判断语句 ..............................................................................................................................2
第九节 循环语句 ..............................................................................................................................3
第十节 其他类语句和错误语句处理 ..................................................................................................4 第十一节 过程和函数 .......................................................................................................................4 一.Sub过程.................................................................................................................................4 二.Function函数 .........................................................................................................................5 三.Property属性过程和Event事件过程 .......................................................................................5
第十二节内部函数 ............................................................................................................................5
一.测试函数 ................................................................................................................................5
二.数学函数 ................................................................................................................................5
三.字符串函数 ............................................................................................................................6
四.转换函数 ................................................................................................................................6
五.时间函数 ................................................................................................................................6 第十三节 文件操作 ...........................................................................................................................6 文件 ..............................................................................................................................................6 删除 ..............................................................................................................................................7 打开 ..............................................................................................................................................7 读入 ..............................................................................................................................................7 写入 ..............................................................................................................................................7 关闭 ..............................................................................................................................................7 其他文件函数 ................................................................................................................................7
二、VISUAL BASIC程序设计网络教学...................................................................................... 1
第一课 VBA是什么 ....................................................................................................................... 1
1.1 VBA是什么.................................................................................................................................1
1.2 EXCEL环境中基于应用程序自动化的优点...................................................................................1
1.3 录制简单的宏..............................................................................................................................2
1.4 执行宏 ........................................................................................................................................2
1.5 查看录制的代码 ..........................................................................................................................2
1.6 编辑录制的代码 ..........................................................................................................................3
1.7 录制宏的局限性 ..........................................................................................................................4
1.8 小结............................................................................................................................................4
上一篇:第2章 状态空间模型