6.2.2 在Excel VBA数据库中引用ADO对象
时间:2023-05-02 02:58:56
要在VBA编程中调用ADO对象,实现Excel与数据库的沟通,.需要在VB编辑器中设置【引用】。通常需要设置的几个选项为:
Microsoft ADO Ext 2.x for DDL and Security ·
Microsoft ActiveX Data Objects (Multi-dimensional) 2.x Library .
Microsoft ActiveX Data Objects Recordset 2.x Library .
Microsoft ActiveX Data Objects 2.x Library
Microsoft Jet and Replication Objects 2.x Library
设置的步骤为: (1)打开Excel文件,按下Alt+FI I组合键,进入VB编辑器。
(2)选择主菜单【工具】l【引用】选项,打开如图6.12所示对话框.(3)选择以上提到的选项。单击【确定】按钮。说明:时于不同版本的选取最断的引用选项。
Excel,有关ADO的引用选项可能不同.应该根据实际情况通过以上步骤,就可以在VBA中引用ADO对象了。
标签:对象,引用,设置,选项,Excel教程
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Excel的条件格式如何设置呢 1、选中想要变化结果的单元格
2023-09-06 11:42:06
Win10预览版14316部分应用中文乱码游戏无法运行怎么办?
2023-07-11 09:09:50
![](https://img.aspxhome.com/file/2023/29/a261635_0s.jpg)
WPS表格–快速输入平方、立方米
2023-08-13 19:19:40
Win10 21H1 6月累积更新KB5003637升级失败怎么办?
2023-12-04 01:28:01
![](https://img.aspxhome.com/file/2023/1/51261_0s.png)
在Excel表格中怎么统计名字出现次数
2023-01-31 03:06:58
迅捷CAD编辑器怎么把CAD里断线连接起来?迅捷CAD编辑器把CAD里断线连接起来的方法
2023-09-13 03:50:54
![](https://img.aspxhome.com/file/2023/8/a333566_0s.png)
欢欢浏览器如何使用?欢欢浏览器使用方法
2022-03-14 22:03:57
![](https://img.aspxhome.com/file/2023/8/a334626_0s.jpg)
win10系统msvcr120.dll没有被指定Windows上运行的解决方法
2023-10-25 01:47:19
![](https://img.aspxhome.com/file/2023/4/a313044_0s.jpg)
U盘启动bios怎么设置_U盘启动品牌bios设置汇总
2022-05-16 00:03:45
![](https://img.aspxhome.com/file/2023/3/a292640_0s.jpg)
wps文字怎么为表格填充序号
2023-02-25 05:31:25
ourplay打开游戏闪退-ourplay闪退解决方法
2022-02-02 20:01:45
![](https://img.aspxhome.com/file/2023/4/a304506_0s.jpg)
妙笔WonderPen for Mac如何使用云盘?
2022-04-06 21:12:40
![](https://img.aspxhome.com/file/2023/3/a213443_0s.jpeg)
电脑版WPS怎么快速将姓名和年龄分列
2023-07-07 05:25:04
![](https://img.aspxhome.com/file/2023/5/a183695_0s.jpg)
Excel在一个单元格中进行换行的两种方法
2023-12-07 06:57:05
![](https://img.aspxhome.com/file/2023/6/a153746_0s.png)
Excel如何添加固定前缀?Excel固定前缀设置方法
2023-12-15 01:20:21
![](https://img.aspxhome.com/file/2023/3/39793_0s.jpg)
Win10cf两边有黑边怎么调?Win10玩cf两边有黑边的解决方法
2022-02-22 18:00:48
![](https://img.aspxhome.com/file/2023/25/a217182_0s.jpg)
excel公式结果变数值的方法
2022-09-06 00:51:23
有宠app怎么关闭资讯推送通知?有宠app关闭资讯推送通知的方法
2023-11-08 01:09:59
![](https://img.aspxhome.com/file/2023/8/a335362_0s.jpg)
Windows10秋季创意者更新“Windows设置”有哪些新特性?
2023-01-07 00:20:40
![](https://img.aspxhome.com/file/2023/26/a224863_0s.jpg)
如何批量设置excel英语句子的首字母大写
2022-12-16 12:07:50
![](https://img.aspxhome.com/file/2023/3/a155593_0s.jpg)