创建一个Excel工作表VA代码 [英] Creating an excel worksheet VA code
问题描述
我正在尝试创建一个宏,该宏中我要删除并剪切一些值,然后将该值粘贴到下一个单元格中.
例如
I am trying to create a macro in which I want to delete and cut some values and then paste that values in next cell.
e.g.
A
----
apple, fruit
执行宏后
A B
---- ---
apple fruit
如何为冗长的列表制作这样的宏?
How could I make such macro for an lengthy list?
推荐答案
如果要从Excel中的一列中创建一些列,请遵循以下步骤:
If you want to make some columns from one column in Excel follow this:
首先,选择要拆分的所有单元格.
At first select all cells you want to split them.
在
数据
选项卡中数据工具
部分中列出的一种工具是文本到列
.
In
Data
tab One of tools listed inData Tools
section istext to Columns
.
选择后,将显示一个向导窗口.
After selecting that, a wizard window will show.
选择 Delimited
选项,然后选择 Next
.
选择逗号
选中,然后完成
.
Select Delimited
option, and Next
.
Select Comma
check, and Finish
.
如果您需要宏,请使用 Macro Recorder
.
If you need a macro for it use Macro Recorder
.
这篇关于创建一个Excel工作表VA代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!