【发布时间】:2022-01-28 06:26:15
【问题描述】:
对于每个列标题,获取每列中的数据并创建一个新的工作表,其中包含单行中的数据
为了澄清和提供更多背景信息,我目前有一个格式如下的表格:
Header A | Header B | ...
--------------------------
Data A1 | Data B1 | ...
Data A2 | Data B2 | ...
...
我想要达到的目标如下:
For each column header
Create a new worksheet with the header name
Fill the worksheet with the following table:
Data A1 | Data A2 | Data A3 | ... (tldr, for each header, get data and create a table where
the headers of the new table are the data relevant to the specific header)
希望这提供了足够的上下文来解决问题。
【问题讨论】:
-
到目前为止你尝试过什么代码?你在哪里遇到了麻烦?请在您的问题中包括这一点。
-
我不太确定从哪里开始,我对 VBA 很陌生,但是有其他语言的编码经验。