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

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

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

本版积分规则

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

GMT+8, 2026-9-23 14:39 , Processed in 0.111959 second(s), 14 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2026 Discuz! Team.

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