创建一个Excel工作表VA代码 [英] Creating an excel worksheet VA code

查看:86
本文介绍了创建一个Excel工作表VA代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个宏,该宏中我要删除并剪切一些值,然后将该值粘贴到下一个单元格中.
例如

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 in Data Tools section is text 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屋!

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