Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
查看: 4913|回复: 11

通过数据-分列 删除A列的前两个字符 与录入VBA(动画)

[复制链接]
发表于 2007-11-9 15:50 | 显示全部楼层 |阅读模式
<p><img src="data/attachment/forum/dvbbs/2007-11/20071191547098703.gif" border="0" onclick="zoom(this)" onload="if(this.width>document.body.clientWidth*0.5) {this.resized=true;this.width=document.body.clientWidth*0.5;this.style.cursor='pointer';} else {this.onclick=null}" alt="" /><br/></p><p>VBA代码</p><p>Sub 清除A列前两个字符()<br/>Columns("A:A").Select<br/>&nbsp;&nbsp;&nbsp; Selection.TextToColumns Destination:=Range("A1"), DataType:=xlFixedWidth, _<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FieldInfo:=Array(Array(0, 9), Array(2, 1)), TrailingMinusNumbers:=True</p><p>End Sub</p>
excel精英培训的微信平台,每天都会发送excel学习教程和资料。扫一扫明天就可以收到新教程
发表于 2007-12-16 09:41 | 显示全部楼层

<p>楼主在这里收金币不太好吧[em03]</p><p>这样都没有什么人学习了</p><p>如果金币不够用可以找大家帮忙的</p>
回复

使用道具 举报

发表于 2007-12-16 09:44 | 显示全部楼层

<p>VBA代码</p><p>Sub 清除A列前两个字符()<br/>Columns("A:A").Select<br/>&nbsp;&nbsp;&nbsp; Selection.TextToColumns Destination:=Range("A1"), DataType:=xlFixedWidth, _<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FieldInfo:=Array(Array(0, 9), Array(2, 1)), TrailingMinusNumbers:=True</p><p>End Sub</p><p>&nbsp;</p>

通过数据-分列 删除A列的前两个字符 与录入VBA(动画)

通过数据-分列 删除A列的前两个字符 与录入VBA(动画)
<br/>
回复

使用道具 举报

发表于 2007-12-16 09:44 | 显示全部楼层

<p>可不,楼主的金币可比我多多了。</p>
回复

使用道具 举报

 楼主| 发表于 2008-2-16 21:39 | 显示全部楼层

<p>移居!</p>[em01]
回复

使用道具 举报

发表于 2008-2-16 21:44 | 显示全部楼层

<p>[em04]不好意思,没征得你的同意就移居了</p><p>动画放"动画版块"更好的</p><p>还可以问动画版的版版要金币呢</p>[em02]
回复

使用道具 举报

发表于 2008-2-23 10:08 | 显示全部楼层

没有钱,好苦啊
回复

使用道具 举报

发表于 2008-2-27 16:37 | 显示全部楼层

<p>不错</p><p></p>
回复

使用道具 举报

发表于 2009-8-20 14:24 | 显示全部楼层

[em01]定一下
回复

使用道具 举报

发表于 2009-9-12 13:54 | 显示全部楼层

学习学习
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2024-5-4 09:59 , Processed in 0.382332 second(s), 7 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表