我有不同的CSV文件,这些文件有一些原始数据 Computer Name,"Computer Serial","User name","Employee Number","Software name"
后面是以下数据。VBA Excel:从CSV文件中以特定格式提取数据
加入这个从链接文件:
Comp;uter;"Name ";Computer;Seria;l"" User";"name"" Employee";"Number"" Software";"name"""
DK4408XP0016,108081520001,"GAILLARD Alain",11014,"LiveUpdate 3.3 (Symantec Corporation)";;;;;;;;
DK4408XP0016,108081520001,"GAILLARD Alain",11014,"Adobe SVG Viewer 3.0";;;;;;;;
DK4408XP0016,108081520001,"GAILLARD Alain",11014,"Adobe Download Manager 2.0 (Supprimer uniquement)";;;;;;;;
DK4408XP0016,108081520001,"GAILLARD Alain",11014,"ATI - Utilitaire de désinstallation du logiciel";;;;;;;;
DK4408XP0016,108081520001,"GAILLARD Alain",11014,"ATI Display Driver";;;;;;;;
DK4408XP0016,108081520001,"GAILLARD Alain",11014,"IBM iSeries Access for Windows";;;;;;;;
DK4408XP0016,108081520001,"GAILLARD Alain",11014,DomusDraw;;;;;;;;
DK4408XP0016,108081520001,"GAILLARD Alain",11014,"NeXspan SoftPhone i2052 R3.1 D03";;;;;;;;
DK4408XP0016,108081520001,"GAILLARD Alain",11014,"Désinstallation du logiciel d''imprimante IBM";;;;;;;;
DK4408XP0016,108081520001,"GAILLARD Alain",11014,"Désinstallation du logiciel IBM";;;;;;;;
DK4408XP0016,108081520001,"GAILLARD Alain",11014,"CA 01 - le Offline MALL de Siemens Automation and Drives";;;;;;;;
DK4408XP0016,108081520001,"GAILLARD Alain",11014,"Java Web Start";;;;;;;;
DK4408XP0016,108081520001,"GAILLARD Alain",11014,"Correctif Windows XP - KB873339";;;;;;;;
DK4408XP0016,108081520001,"GAILLARD Alain",11014,"Correctif Windows XP - KB885250";;;;;;;;
DK4408XP0016,108081520001,"GAILLARD Alain",11014,"Correctif Windows XP - KB885835";;;;;;;;
DK4408XP0016,108081520001,"GAILLARD Alain",11014,"Correctif Windows XP - KB885836";;;;;;;;
DK4408XP0016,108081520001,"GAILLARD Alain",11014,"Correctif Windows XP - KB886185";;;;;;;;
我从来没有用Excel VBA工作过,这是第一次我要去这方面的工作。我开始研究一些示例,在Excel中创建运行VBA代码&。
有人请帮我解决这个问题,我想创建VBA代码来提取原始数据&放入下面的格式。
CompName ComputerSerial UserName EmpNo SoftwareName
DK4408XP0016 1108081520001 GAILLARD Alain 11014 LiveUpdate 3.3 (Symantec Corporation)
DK4408XP0016 1108081520001 GAILLARD Alain 11014 Adobe SVG Viewer 3.0
我检查这个环节Code for looping through all excel files in a specified folder, and pulling data from specific cells &有关于“通过文件夹的文件擅长循环”的信息,但是这不是我要找的。
我想,我需要在这里做的,从文件&删除特殊字符,如, "" ;
然后格式。我根本不知道如何继续。
是否有任何工具从.CSV文件中提取数据?我需要一些建议,想法或一些很好的例子来解决我的问题,这对我来说真的很有帮助。
我共享我在这里的文件之一:http://uploadmb.com/freeuploadservice.php?uploadmbID=1323960039&srv=www&filename=4408_NANTES_softwares.csv
您示例文件的格式看起来并不像您在这里发布的内容:“Comp; uter;”Name,“”“; Computer; Seria;”l“”,“User”;“name “”,“”雇员“,”号码“,”“软件”,“名称”“” “DK4408XP0016,108081520001”,“GAILLARD Alain”“,11014,”“LiveUpdate 3.3(赛门铁克公司) ;;;;;;`那是哪一个呢? – 2011-12-15 16:49:03
@ Jean-FrançoisCorbett:你说得对。我有很多这样的文件。现在我已将示例添加到问题中。 – linguini 2011-12-15 17:33:47