Excel精英培训网

 找回密码
 注册

Function fncombine(myrange As Range)

已有 660 次阅读2016-4-23 09:38

Function fncombine(myrange As Range)
Dim strcombine As String
Dim mycell As Range
strcombine = ""
For Each mycell In myrange
If mycell.Value <> "" Then
strcombine = strcombine & mycell.Value & ","
End If
Next
strcombine = Left(strcombine, Len(strcombine) - 1)
fncombine = strcombine
End Function

评论 (0 个评论)

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

GMT+8, 2024-6-29 08:17 , Processed in 0.080985 second(s), 5 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

返回顶部