VBA代码转C# 求高手转义并测试

ryan_allyes 2012-05-21 05:23:37

Private Sub CommandButton1_Click()
Dim d, arr, s$, i
arr = Range("a1", [b65536].End(3))
Set d = CreateObject("Scripting.Dictionary")
For i = 1 To UBound(arr)
s = arr(i, 1) & arr(i, 2)
If Not d.exists(s)
Then d(s) = i Else Cells(i, 2).Interior.ColorIndex = 22 End If Next Set d = Nothing End Sub
...全文
62 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

111,126

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧