当前位置:网站首页>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边栏推荐
- 【Prometheus】Prometheus联邦的一次优化记录[续]
- Hello, my new name is "Bronze Lock/Tongsuo"
- 架构师如何成长
- Scala学习:类和对象
- 深入浅出边缘云 | 3. 资源配置
- Talking about Contrastive Learning (Contrastive Learning) the first bullet
- Witness the magical awakening of the mini world in HUAWEI CLOUD
- Tensorflow2.0 混淆矩阵与打印准确率不符
- Common linked list problems and their Go implementation
- Scrapy框架介绍
猜你喜欢

Mysql execution principle analysis

MindSpore:对image作normalize的目的是什么?

Critical Reviews | 南农邹建文组综述全球农田土壤抗生素与耐药基因分布

【总结】1396- 60+个 VSCode 插件,打造好用的编辑器

Does the satellite phone communicate directly with the satellite or through a ground station?

- daily a LeetCode 】 【 191. A number of 1

第十七届“振兴杯”全国青年 职业技能大赛——计算机程序设计员(云计算平台与运维)参赛回顾与总结

部分分类网络性能对比

一文读懂“语言模型”

【网站放大镜效果】两种方式实现
随机推荐
【Pointing to Offer】Pointing to Offer 18. Delete the node of the linked list
The large-scale application of artificial intelligence AI products in industrial-grade mature shipping ports of CIMC World Lianda will create a new generation of high-efficiency smart ports and innova
[TypeScript]编译配置
防抖和节流有什么区别,分别用于什么场景?
Critical Reviews | 南农邹建文组综述全球农田土壤抗生素与耐药基因分布
【刷题篇】计算质数
基于inquirer封装一个控制台文件选择器
kotlin by lazy
【网站放大镜效果】两种方式实现
Anaconda Navigator stuck on loading applications
Object和Map的区别
阿里云武林头条活动分享
MYSQL(基本篇)——一篇文章带你走进MYSQL的奇妙世界
中集世联达工业级成熟航运港口人工智能AI产品规模化应用,打造新一代高效能智慧港口和创新数字港口,全球港航人工智能能领军者中集飞瞳
【hbuilder】运行不了部分项目 , 打开终端 无法输入指令
The advanced version of the cattle brushing series (search for rotating sorted arrays, inversion of the specified range in the linked list)
[Prometheus] An optimization record of the Prometheus federation [continued]
MindSpore:【resnet_thor模型】尝试运行resnet_thor时报Could not convert to
MindSpore:mindspore有没有类似tf.GradientTape()用来求解梯度的?
VS Code connects to SQL Server