使用宏替换Excel文件中的数据 [英] Replace data in an Excel file using macros
本文介绍了使用宏替换Excel文件中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想做的是创建一个宏,可以通过列的标题替换星号*
解决方案
只使用工作表工具(无VBA):
-
Ctrl-F
- 找到什么=〜*
-
查找全部
-
Ctrl-A
选择所有查找结果 -
关闭
查找对话框 - 假设您的标题在第二行,并假设光标位于列C某处(我做了两次YMMV),键入
公式= C $ 2
- 按
Ctrl-Enter
I have an Excel file wich contains some data in a 2d array.
What I want to do is to create a macro which can replace the asterisk '*' by the header of the column of the table (toto, or tata, or titi).
解决方案
Using just worksheet tools (no VBA):
Ctrl-F
- Find what = ~*
Find All
Ctrl-A
to select all the Find resultsClose
the Find dialog- Assuming your headers in row two, and assuming the cursor lands in column C somewhere (mine did twice, YMMV), type
formula
=C$2
- Press
Ctrl-Enter
这篇关于使用宏替换Excel文件中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文