根据目录下的文件名添加一些数据进excel里面

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: 根据目录下的文件名添加一些数据进excel里面

Re: 根据目录下的文件名添加一些数据进excel里面

Post by amnesiac » 29 Sep 2014, 02:52

  1. 遍历文件夹
  2. 访问 Excel 文件内容:
建议多熟悉帮助,多使用论坛搜索功能。

Re: 根据目录下的文件名添加一些数据进excel里面

Post by RobertL » 28 Sep 2014, 22:46

liangdl wrote:让ahk自己查找目录下有什么文件
依据你设定的条件自动查找..。

Re: 根据目录下的文件名添加一些数据进excel里面

Post by liangdl » 28 Sep 2014, 20:34

问题是目录下的文件名是每次都不一样的。。怎么让ahk自己查找目录下有什么文件。。是不是要用个for循环?

Re: 根据目录下的文件名添加一些数据进excel里面

Post by RobertL » 27 Sep 2014, 19:02

文件操作,AHK已内置,
Office操作,在AHK中通过Office的COM接口(用类似VBA的方法)操作。

根据目录下的文件名添加一些数据进excel里面

Post by liangdl » 27 Sep 2014, 18:51

现在想实现查找目录下的文件名如 001002.csv 008009.csv 035036.csv 然后把excel下的001002或008009和035036行添加内容到行的尾端,这个该用什么思路实现啊,不胜赐教。。

Top