Excel精英培训网

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

[资料] [分享]連接選定單元格中的內容

[复制链接]
发表于 2007-7-19 14:05 | 显示全部楼层 |阅读模式
本帖最后由 爱疯 于 2012-6-7 22:12 编辑 <br /><br /><P>[hide]Function LinkCell()<BR>&nbsp;&nbsp;Dim sReg As Range, Nx As Range<BR>&nbsp;&nbsp;Dim Tex<BR>&nbsp;&nbsp;Set sReg = Selection<BR>&nbsp;&nbsp;For Each Nx In sReg<BR>&nbsp; &nbsp;&nbsp; &nbsp;Tex = Nx.Value<BR>&nbsp; &nbsp;&nbsp; &nbsp;If Tex &lt;&gt; vbNullString Then<BR>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;If LinkCell = vbNullString Then<BR>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;LinkCell = Tex<BR>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;Else<BR>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;LinkCell = LinkCell &amp; "/" &amp; Tex<BR>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;End If<BR>&nbsp; &nbsp;&nbsp; &nbsp;End If<BR>&nbsp;&nbsp;Next<BR>&nbsp;&nbsp;Cells(sReg.Row, sReg.Column) = LinkCell<BR>End Function[/hide</P>
<P>] </P>
<P align=right><FONT color=#000066>[此贴子已经被作者于2007-7-25 10:51:49编辑过]</FONT></P>
发表于 2007-7-19 14:06 | 显示全部楼层
回复

使用道具 举报

 楼主| 发表于 2007-7-19 14:06 | 显示全部楼层

游客,如果您要查看本帖隐藏内容请回复

[此贴子已经被作者于2007-7-25 10:52:07编辑过]
回复

使用道具 举报

发表于 2007-7-19 14:11 | 显示全部楼层

楼主兄弟如果能附带说明就更好了。。。
回复

使用道具 举报

发表于 2007-8-18 16:36 | 显示全部楼层

<p>look yi&nbsp; look</p>
回复

使用道具 举报

发表于 2007-8-18 16:42 | 显示全部楼层

不懂也要看
回复

使用道具 举报

发表于 2007-8-18 16:43 | 显示全部楼层

dddd
回复

使用道具 举报

发表于 2007-8-18 21:30 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

发表于 2007-8-18 21:34 | 显示全部楼层

游客,如果您要查看本帖隐藏内容请回复
回复

使用道具 举报

 楼主| 发表于 2007-8-18 21:40 | 显示全部楼层

<p>看看~!?<strong><font face="Verdana" color="#61b713">andysky老师。。真的是,,呵呵</font></strong></p>
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-29 06:31 , Processed in 1.054291 second(s), 5 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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