用于将一个工作表数据拆分为多个工作表的宏代码,其中相同的列名称必须在一个工作表中 [英] Macro Code for Splitting one sheet data into multiples sheets where same column name must be together in one sheet

查看:78
本文介绍了用于将一个工作表数据拆分为多个工作表的宏代码,其中相同的列名称必须在一个工作表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


Hi,

Hi,


我有一个问题,我必须将一个工作表数据拆分成多个工作表。

I have one concern that I have to split one sheet data into multiples sheets.


根据以下条件。

Based on condition as below.

$
主表包含以下

Main Sheet contain following


专栏:Akshay,Aman,Akshay,Jon,Jon,Aman,Lili,Lili

Columns : Akshay, Aman, Akshay, Jon, Jon, Aman, Lili, Lili


主要表格包含上述人员的详细信息。

Main Sheet consists of  details of above persons .


我需要将主页分成每个人的单独表格。

I need to split the Main Sheet into separate sheet for each of individual person.


表示分割后1张包含2列Akshay,第二张表应包含2列Aman等等

Means after splitting 1 sheet contains 2 columns of Akshay together, second sheet should contain 2 columns of Aman and so on


如果有人可以提供这样的宏代码,我将不胜感激。

Would appreciate if any body can provide such macro code.


提前致谢


问候,


Avis

Avis

推荐答案

假设您的第一张工作表在单元格A1中开始,标题在行中1,每个标题出现两次,没有其他标题。

Assumes that your first sheet starts in cell A1, with the headers in row 1, and that each header appears twice, with no other headers.


这篇关于用于将一个工作表数据拆分为多个工作表的宏代码,其中相同的列名称必须在一个工作表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆