Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 02-07-2012, 05:05 PM
macropod's Avatar
macropod macropod is offline Creating Invoices from CSV Windows 7 64bit Creating Invoices from CSV Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Ian,
Quote:
Originally Posted by iansan5653 View Post
Could you give me a more detailed explanation? I have never done macros before.
Basically, a macro would have to be coded to look at each row to see whether it has a value in your 7th column. If so (let's assume row 1), it would then look at the next row (row 2) to see if that has a value in your 6th column and, if so, cut columns 2-6 from that row and paste them into, say, columns 8-12 on the current row (1). The code would then look at the next row down (3) to see if that has a value in your 6th column. If so, columns 1-7 from row 1 would have to be copied to row 2 and columns 2-6 from row 3 cut & pasted to columns 8-12 on row 2. Row 2 would then become the 'current' row and the process would repeat until another row is found with a value in your 7th column. At that point the whole process would start over. After all this processing to get the data onto a single row per client & category is done, any remaining rows would be deleted.

As you can see, this is quite an involved process.

If you're going to drive the letter generation from Excel, the macro would also need to sort the data by client, start a Word session, export the data for the first client to it, save a copy, then process the next client untill all are done.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
csv, excel 2003, invoices

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating 3D PPT 123music PowerPoint 0 01-03-2012 06:59 AM
Creating Invoices from CSV Creating a contract todd.denoyer Word 3 05-05-2011 04:53 PM
creating macro steveb Word VBA 0 08-14-2010 01:29 AM
Creating Certificate PaulAtrib Office 1 06-19-2009 03:27 AM
Creating new project Using PDS myanilkumar Project 0 01-05-2006 12:35 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:09 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft