找回密码
 加入
搜索
楼主: tcpuuu

[GUI管理] 讀EXCEL單元格並建立數組(求其他的語法)

  [复制链接]
发表于 2012-7-26 20:52:31 | 显示全部楼层
Private Sub Worksheet_Change(ByVal Target As Range)
    If Application.Intersect(Target, [A2:R2]) Is Nothing Then Exit Sub
    Dim myPath As String,I!
    myPath = ThisWorkbook.Path
    Open myPath & "\ABC.INI" For Output As #1
    Print #1, "[ABC]"
    for i=1 to 18
        print #1, i & "=" & trim(cells(2,i).value)
    next i
    Close #1
End Sub
试下
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-12-27 17:44 , Processed in 0.065054 second(s), 15 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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