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

推荐订阅源

C
Cisco Blogs
The Cloudflare Blog
云风的 BLOG
云风的 BLOG
Recorded Future
Recorded Future
F
Fortinet All Blogs
Microsoft Azure Blog
Microsoft Azure Blog
U
Unit 42
博客园 - 三生石上(FineUI控件)
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
N
Netflix TechBlog - Medium
C
Check Point Blog
Security Latest
Security Latest
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
J
Java Code Geeks
The GitHub Blog
The GitHub Blog
V
Vulnerabilities – Threatpost
阮一峰的网络日志
阮一峰的网络日志
P
Palo Alto Networks Blog
C
CERT Recently Published Vulnerability Notes
F
Full Disclosure
C
Cyber Attacks, Cyber Crime and Cyber Security
雷峰网
雷峰网
T
The Blog of Author Tim Ferriss
T
Threat Research - Cisco Blogs
Cisco Talos Blog
Cisco Talos Blog
V
V2EX
Latest news
Latest news
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
Cyberwarzone
Cyberwarzone
The Hacker News
The Hacker News
A
Arctic Wolf
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
NISL@THU
NISL@THU
腾讯CDC
P
Privacy & Cybersecurity Law Blog
G
GRAHAM CLULEY
罗磊的独立博客
S
Schneier on Security
C
Cybersecurity and Infrastructure Security Agency CISA
博客园 - 司徒正美
K
Kaspersky official blog
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
月光博客
月光博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Project Zero
Project Zero
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
I
InfoQ

博客园 - 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)  评论()    收藏  举报