惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
月光博客
月光博客
S
Security Affairs
宝玉的分享
宝玉的分享
D
DataBreaches.Net
MongoDB | Blog
MongoDB | Blog
Cloudbric
Cloudbric
PCI Perspectives
PCI Perspectives
B
Blog RSS Feed
腾讯CDC
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Attack and Defense Labs
Attack and Defense Labs
N
News and Events Feed by Topic
T
The Blog of Author Tim Ferriss
H
Help Net Security
Vercel News
Vercel News
W
WeLiveSecurity
U
Unit 42
S
SegmentFault 最新的问题
Microsoft Azure Blog
Microsoft Azure Blog
Google Online Security Blog
Google Online Security Blog
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
S
Schneier on Security
The Register - Security
The Register - Security
酷 壳 – CoolShell
酷 壳 – CoolShell
Recent Announcements
Recent Announcements
博客园 - Franky
H
Hacker News: Front Page
WordPress大学
WordPress大学
I
Intezer
M
MIT News - Artificial intelligence
博客园 - 叶小钗
The Last Watchdog
The Last Watchdog
T
Troy Hunt's Blog
Stack Overflow Blog
Stack Overflow Blog
Microsoft Security Blog
Microsoft Security Blog
L
Lohrmann on Cybersecurity
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
I
InfoQ
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Schneier on Security
Schneier on Security
P
Proofpoint News Feed
V
V2EX
Help Net Security
Help Net Security
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
大猫的无限游戏
大猫的无限游戏
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs

博客园 - Blueeyes

挺有意思的小工具。。。 JS调用c#编写的DLL 笔记本CPU大全 搜集整理的一些SQL语句 .NET程序脱离.NET框架的方法 ASP.NET3.5的ListView与CSS Friendly ASP.NET页面中标题单点解决方案 微软一个罕为人知的无敌命令ntsd 微软一个罕为人知的无敌命令ntsd 全国主要城市的DNS服务器列表 静态构造器四个准则 .NET 中的对象序列化 .NET 中的数字格式化,日期格式化 别有用心的SQL 向水晶报表传递参数 在GridView的中有一个DropDownList,并且DropDownList有回传事件 纯CSS文字阴影效果实现 写了一个查看SQL表结构的小工具 gridview的简单示例 (个人收藏)
Excel轻松合并
Blueeyes · 2007-02-06 · via 博客园 - Blueeyes
Excel轻松合并

Private Sub CommandButton1_Click()
  '统计要合并的工作表的数量(循环次数)
  For i = 2 To Sheets.Count
  Worksheets(i).Select
  '选择各工作表中的数据区域并复制
  irow = Worksheets(i).[B65536].End(xlUp).Row
  ActiveSheet.Range('A2:AA' && irow).Select
  Selection.Copy
  '粘贴到第一张工作表中
  Worksheets(1).Select
  mrow = [a65536].End(xlUp).Row + 1
  Range('A' && mrow).Select
  ActiveSheet.Paste
  Next i
  
  [a1].Select
  CommandButton1.Enabled = False
  countall = '一共合并了' + Str([a65536].End(xlUp).Row - 1) + '记录,数据表合并成功!'
MsgBox countall, vbOKOnly, '提示信息'
  End Sub
  程序中“ActiveSheet.Range('A2:AA' && irow).Select”的功能用于选择每张工作表除了第一行以外的数据区域(第一张工作表除外)。
  小提示:在进行本操作之前,首先要保证每张工作表的字段顺序是一致的,且每张成绩中第一行是表格的标题行。

posted on 2007-02-06 12:54  Blueeyes  阅读(808)  评论()    收藏  举报