只需一步,快速开始
1970-1-1 08:00| 发布者: tanjh| 查看: 5249| 评论: 0
比如读取D:\税金.xls中sheet1中A1:B20的数据dim i as integerapplication.screenupdating=falsefor i=1 to 20activesheet.cells(i,1).formula="='D:\[税金.xls]sheet1'!$A$" & iactivesheet.cells(i,2).formula="='D:\[税金.xls]sheet1'!$B$" & inext iactivesheet.range("a1").currentregion.copyactivesheet.range("a1").PasteSpecial xlPasteValuesApplication.CutCopyMode = Falseapplication.screenupdating=true
运行一下后,发现比打开、读取、关闭的操作快多了,特与大家分享。
评论
|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )
GMT+8, 2025-4-2 12:51 , Processed in 0.097550 second(s), 17 queries .
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.