I’m new to Excel VB scripting and so have no idea on how to approach the below problem as I have hundreds to create.
I have the below xml template file that I would like to be populated from the data in Excel. All the fields in the xml file that are called “change me” need the information from Excel to be added in. Each row in Excel should represent a new xml file to then be created. Also I would need the same VB script from above to allow Excel to create the xml files with the file name given in Excel and saved to a given folder. Is there a way of achieving this through Excel? Example of the rows of Excel data: Asset Type defaultLockFileName OrignalFileName Title House End Terrace House_End_Terrace.pdf House_End_Terrace.pdf House End Terrace Pre-War House Semi Detached House_Semi_Detached.pdf House_Semi_Detached.pdf House Semi Detached 1950s.pdf etc Content of the XML Template file <?xml version="1.0" encoding="utf-8"?> <metadata version="1.1" xmlns="http://meridio.com/EnterpriseDocumentCapture/Metadata.xsd"> <action>declare</action> <locations> <fileplan>/Property Plans/2014</fileplan> </locations> <document> <author>Drew Alison</author> <category>Property Plan</category> <comment>Change Me</comment> <defaultLockFileName> Change Me</defaultLockFileName> <disposalScheduleChain>Chain for Property Plans</disposalScheduleChain> <documentDate>2013-08-07T11:33:28.916Z</documentDate> <indexingType>indexNewVersions</indexingType> <keepOnline>false</keepOnline> <originalFileName> Change Me</originalFileName> <owner /> <policy /> <reclaimPending>false</reclaimPending> <title>Change Me</title> <versionType>major</versionType> <security> <accessControl /> <protectiveMarkings /> </security> <persisted> <text name="Asset Type">Change Me</text> </persisted> <nonpersisted /> </document> <relationships /> </metadata> Many thanks in advance J -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to excel-macros+unsubscr...@googlegroups.com. To post to this group, send email to excel-macros@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros. For more options, visit https://groups.google.com/d/optout.