当前位置:网站首页>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
边栏推荐
- 生物医学论文有何价值 论文中译英怎样翻译效果好
- 【刷题篇】计算质数
- 部分分类网络性能对比
- Deepen school-enterprise cooperation and build an "overpass" for the growth of technical and skilled talents
- Chapter 4 Controlling the Execution Flow
- The use of terminal split screen tool Terminalx
- 谷歌AlphaFold近日宣称预测出地球上几乎所有蛋白质结构
- VBA connects Access database and Excel
- 延时队列优化 (2)
- VBA批量将Excel数据导入Access数据库
猜你喜欢
谷歌AlphaFold近日宣称预测出地球上几乎所有蛋白质结构
Alibaba Cloud Martial Arts Headline Event Sharing
Mysql执行原理剖析
云数据库和本地数据库有什么区别?
【Swords Offer】Swords Offer 17. Print n digits from 1 to the largest
The advanced version of the cattle brushing series (search for rotating sorted arrays, inversion of the specified range in the linked list)
MindSpore:【JupyterLab】查看数据时报错
nlohmann json 使用指南【visual studio 2022】
MindSpore:【模型训练】【mindinsight】timeline的时间和实际用时相差很远
电脑死机的时候,发生了什么?
随机推荐
MindSpore: CV.Rescale(rescale,shift)中参数rescale和shift的含义?
MindSpore:【MindSpore1.1】Mindspore安装后验证出现cudaSetDevice failed错误
requet.getHeader(“token“) 为null
WEBSOCKETPP使用简介+demo
The Meta metaverse division lost 2.8 billion in the second quarter!Still want to keep betting?Metaverse development has yet to see a way out!
Recommendation | People who are kind to you, don't repay them by inviting them to eat
【刷题篇】计算质数
第一次进入小程序判断
LeetCode每日一题(1717. Maximum Score From Removing Substrings)
VBA 运行时错误‘-2147217900(80040e14):自动化(Automation)错误
7.30模拟赛总结
【每日一道LeetCode】——191. 位1的个数
【Pointing to Offer】Pointing to Offer 22. The kth node from the bottom in the linked list
【MindSpore】用coco2017训练Model_zoo上的 yolov4,迭代了两千多batch_size之后报错,大佬们帮忙看看。
[Summary] 1396- 60+ VSCode plugins to create a useful editor
Vulkan开启特征(feature)的正确姿势
vxe-table实现复选框鼠标拖动选中
What is a RESTful API?
云数据库和本地数据库有什么区别?
kotlin by lazy