当前位置:网站首页>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边栏推荐
- Pytorch foundation -- tensorboard use (1)
- [Use of Qt Designer tool]
- VS Code connects to SQL Server
- 开心的聚餐
- 第一次进入小程序判断
- 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
- What is the value of biomedical papers? How to translate the papers into Chinese and English?
- Spark学习:用spark实现ETL
- 2种手绘风格效果比较,你更喜欢哪一种呢?
- 【Prometheus】Prometheus联邦的一次优化记录[续]
猜你喜欢

natural language processing nltk

MindSpore:【Resolve node failed】解析节点失败的问题

Google's AlphaFold claims to have predicted almost every protein structure on Earth

云数据库和本地数据库有什么区别?

已删除

中集世联达工业级成熟航运港口人工智能AI产品规模化应用,打造新一代高效能智慧港口和创新数字港口,全球港航人工智能能领军者中集飞瞳

kotlin by lazy

Swiper轮播图片并播放背景音乐

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

scrapy基本使用
随机推荐
第14章 类型信息
MindSpore:【JupyterLab】查看数据时报错
crontab中写go run不执行的问题
What is the difference between a cloud database and an on-premises database?
6 yuan per catty, why do Japanese companies come to China to collect cigarette butts?
Range.CopyFromRecordset 方法 (Excel)
WeChat Mini Program Cloud Development | Urban Information Management
又一家公司面试的内容
牛客刷题系列之进阶版(组队竞赛,排序子序列,倒置字符串, 删除公共字符,修理牧场)
【网站放大镜效果】两种方式实现
golang日志库zerolog使用记录
第十七届“振兴杯”全国青年 职业技能大赛——计算机程序设计员(云计算平台与运维)参赛回顾与总结
Scrapy框架介绍
MongoDB打破了原则引入SQL?
【PHPWord】Quick Start of PHPWord in PHPOffice Suite
MindSpore:Cifar10Dataset‘s num_workers=8, this value is not within the required range of [1, cpu_thr
Pytorch foundation -- tensorboard use (1)
requet.getHeader("token") is null
Node encapsulates a console progress bar plugin
VBA 连接Access数据库和Excle