sub aa()'让你的图形指定这个宏 debug.print application.caller end sub sub tt()'在立即窗体中copy图形名称,填到[]中,别加""啊 sheets(1).[图形名称].delete end sub
发表于:2008-01-12 10:28:493楼 得分:0
sub aa() dim s as shape for each s in sheets(1).shapes 'debug.print s.name'看看你的图形叫什么名先 if instr(1, s.name, "oval") = 0 then'如果不是你要的图就删 s.delete end if next end sub
发表于:2008-01-13 00:32:564楼 得分:0
sub macro1() dim sh as shape for each sh in activesheet.shapes if sh.name like "text*" or sh.name like "line*" then sh.delete next end sub