当前位置:网站首页>Range.CopyFromRecordset method (Excel)
Range.CopyFromRecordset method (Excel)
2022-07-30 19:10:00 【OOQ】
Copy the contents of the ADO or DAO Recordset object into the worksheet (starting in the upper left corner of the specified area).This method has no effect if the Recordset object contains fields with OLE objects.
Syntax
expression.CopyFromRecordset (Data, MaxRows, MaxColumns)p>
expression an expression Range object.
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| Data | Required | Variant | Copy to the Recordset object in scope. |
| MaxRows | optional | Variant | Maximum number of records to copy into worksheet.If this parameter is omitted, all records in the Recordset object will be copied. |
| MaxColumns | optional | Variant | Maximum number of fields to copy into the worksheet.If this parameter is omitted, all fields in the Recordset object are copied. |
For iCols = 0 to rs.Fields.Count - 1ws.Cells(1, iCols + 1).Value = rs.Fields(iCols).NameNextws.Range(ws.Cells(1, 1), _ws.Cells(1, rs.Fields.Count)).Font.Bold = Truews.Range("A2").CopyFromRecordset rs边栏推荐
- VS Code connects to SQL Server
- Object和Map的区别
- 运营 23 年,昔日“国内第一大电商网站”黄了...
- MindSpore:数据处理问题
- Deepen school-enterprise cooperation and build an "overpass" for the growth of technical and skilled talents
- MYSQL(基本篇)——一篇文章带你走进MYSQL的奇妙世界
- 中集世联达工业级成熟航运港口人工智能AI产品规模化应用,打造新一代高效能智慧港口和创新数字港口,全球港航人工智能能领军者中集飞瞳
- 【刷题篇】计算质数
- 跨进程启动后台服务
- node封装一个控制台进度条插件
猜你喜欢

Mysql execution principle analysis

开心的聚餐

Mysql执行原理剖析

Recommendation | People who are kind to you, don't repay them by inviting them to eat

【每日一道LeetCode】——191. 位1的个数

卫星电话是直接与卫星通信还是通过地面站?

Read the "Language Model" in one article

redis

The advanced version of the cattle brushing series (search for rotating sorted arrays, inversion of the specified range in the linked list)

VBA批量将Excel数据导入Access数据库
随机推荐
How do radio waves transmit information?
不同的路径依赖
Anaconda Navigator stuck on loading applications
Scrapy框架介绍
NC | 西湖大学陶亮组-TMPRSS2“助攻”病毒感染并介导索氏梭菌出血毒素的宿主入侵...
架构师如何成长
Golang logging library zerolog use record
OneFlow source code analysis: Op, Kernel and interpreter
VS Code 连接SQL Server
VBA 连接Access数据库和Excle
Go 系统收集
Pytorch foundation -- tensorboard use (1)
MindSpore:【语音识别】DFCNN网络训练loss不收敛
7.30模拟赛总结
电脑死机的时候,发生了什么?
卫星电话是直接与卫星通信还是通过地面站?
kotlin by lazy
LeetCode每日一题(1717. Maximum Score From Removing Substrings)
【Prometheus】Prometheus联邦的一次优化记录[续]
基于inquirer封装一个控制台文件选择器