This topic has been archived. It cannot be replied.
-
工作学习 / 专业知识杂谈 / 关于excel macro的问题,请赐教!hello,大家好,我现在需要操作两个excel 文件,做一个Macro,使用advanced filter ,挑出新添记录,modify一下想适应不同文档。遇到一些问题,请高手指教!谢谢!
list range 或criteria range范围可以选择如'All Open'!$A$2:$A$200,但如果不同文件表格行数不同,我怎么才能指定如第一列的第二行到最后一行所有单元格?
macro语句中默认当前文件怎么表示?以便操作别的文件时不用修改文件名而只用符号代替
-xyan2008(kaixincidian);
2005-6-21
{381}
(#2357922@0)
-
这个东东很少有人搞。你需要学VBA for Excel。简单的方法是用sheet,不用range,这样就没有range变化的问题了。
-23456789(大白呼);
2005-6-21
(#2358549@0)
-
会定义select current range吗?查一查书,定义了这个键,用macro recorder就能找到对应的code。除非你的表里有多于一个要filter的range。写code前data最好normalize,尽管是Excel。
-ekati(网友);
2005-6-22
(#2359502@0)
-
你能说详细点吗?我是新手,有点不明白
-xyan2008(kaixincidian);
2005-6-22
(#2359530@0)
-
新手先查手册,必经之路。你还是上个什么课吧,我以前同事十几个写VBA的,没上过课的写的东西就是不行。上课先讲Excel再讲VBA,Excel不熟写不好VBA for Excel的。你不知用什么对象,属性,方法。都是Excel native的。
-ekati(网友);
2005-6-22
(#2359536@0)
-
哦,好的,我知道点VB,那能告诉我VBA从哪里得到啊?
-xyan2008(kaixincidian);
2005-6-22
(#2359541@0)
-
VBA跟Office来的。有office就有VBA。你写macro就是用的VBA。Word,Powerpoint, Excel,Outlook,都有自己的VBA。你太初级了,想学还是要看书。网上教不了你。
-ekati(网友);
2005-6-22
(#2359548@0)
-
那好吧,我再慢慢找找书,查查资料,谢谢了,如果我能坚持再学的话,再找你请教吧!have a good dream!but now I am at noon in Beijing!
-xyan2008(kaixincidian);
2005-6-22
(#2359567@0)
-
比如你的表里的列A不会有空值的话,用这个公式=counta(A:A),但如果其中有空值计算结果就不准了
-zxcvb(朝天椒);
2005-6-21
(#2358580@0)
-
你们说的不是一回事。
-ekati(网友);
2005-6-22
(#2359495@0)
-
谢谢,我去试试!
-xyan2008(kaixincidian);
2005-6-22
(#2359532@0)
-
还有,micro定义中有一个strore macro in 选项,New Workbook,this workbook,personal micro workbook 分别是什么意思啊?谢谢了!
-xyan2008(kaixincidian);
2005-6-22
(#2359535@0)
-
macro跟文件的。你可以把macro存当前文件,新文件,或者你专门的存宏的文件。你不是指望在网上学会写VBA吧?我睡觉了。你慢慢试吧。
-ekati(网友);
2005-6-22
(#2359542@0)
-
你没有EXCEL VBA手册?你几年Excel经验?
-ekati(网友);
2005-6-22
(#2359490@0)
-
我是第一次用excel的这些高级特性,不好意思,这个手册都说了些什么?我怎么得到啊?谢谢了!
-xyan2008(kaixincidian);
2005-6-22
(#2359533@0)
-
你偶尔用用的就算了。书店有。程序员用的。初学者你还是看教程吧,书店也有。
-ekati(网友);
2005-6-22
(#2359540@0)
-
VBA expert, 8 years experienceI wrote more than 50 app's for my previous company in China and my
present company in Canada, I'm providing consulting for some other
company, I'm willing to help everyone on bussiness level.
-dixk(dick);
2005-6-24
{196}
(#2363629@0)
-
what a show off...
-jeffrey815(Smartiecat);
2005-6-24
(#2363631@0)
-
Business level means not for free, right? Your name is right, Dick... :-)
-ekati(网友);
2005-6-24
(#2364168@0)
-
我也愿意给大家作Business level 的辅导啦$$$$$$
-zxcvb(朝天椒);
2005-6-24
(#2364184@0)
-
你也想变成Dick?
-ekati(网友);
2005-6-24
(#2364194@0)
-
我爱钱Dick是啥子意思?
-zxcvb(朝天椒);
2005-6-24
{15}
(#2364233@0)
-
按一哈F1,看看有没有解释。:-)自己查字典!
-ekati(网友);
2005-6-24
{12}
(#2364304@0)
-
if you own a bussiness, you get to pay sb's work for you, isn't right in Canada? if you just want to learn, I'll give you some tips for free.
-dixk(dick);
2005-6-24
(#2364228@0)
-
You are absolutely right! But here is a forum, eh? You want to make some bucks here? Tell me about it...
-ekati(网友);
2005-6-24
(#2364298@0)
-
free tips please. I would give tips to anyone who is at least close to my level. No one can become a master by learning just from tips.
-23456789(大白呼);
2005-6-26
(#2366245@0)