LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Text to Row automation

Hello all,

I have no experience in Excel VBA (except for modifying a few recorded
macros), but am faced with a very complicated data clean-up project
which will take forever unless I can automate it.

My original data looks like this:
DocumentNumber Companies Date
Type Description
12 CoA, CoB
1/1/07 Type1 Doc12description
15 CoA
12/15/06 Type2 Doc15description
26 CoB, CoC,CoD,CoE 12/12/06
Type1 Doc26description

I need my final spreadsheet to look like this:
DocumentNumber Companies Date
Type Description
12 CoA
1/1/07 Type1 Doc12description
12 CoB
1/1/07 Type1 Doc12description
15 CoA
12/15/06 Type2 Doc15description
26 CoB
12/12/06 Type1 Doc26description
26 CoC
12/12/06 Type1 Doc26description
26 CoD
12/12/06 Type1 Doc26description
26 CoE
12/12/06 Type1 Doc26description

I was thinking that if I added a column indicating the number of items
in the column B for each row, I could somehow set a variable to that
number, add the appropriate number of rows, copy the data that's the
same on each row, and then somehow parse the data from column B into
each of the separate rows. But I have no idea how to go about this in
Excel ... my only experience with VBA (and that's not much) is in
Access.

I have written some macros to automate bits of this, but I still have
to step through each row and count the item numbers myself. It's
better than doing it by hand, but I'm thinking there must be a way I
can run the whole worksheet at one time.

Any pointers?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automation: Adding Text to Cell With Different Colours Manfred Senn Excel Programming 2 November 24th 06 03:20 PM
Visio Text (Number) Automation dk Excel Discussion (Misc queries) 0 June 23rd 05 07:02 PM
Excel Automation - loading text files varsha kashyap Excel Programming 0 October 18th 04 10:13 AM
Printing Text from Excel Automation Tom Ogilvy Excel Programming 0 August 6th 04 04:07 PM
Retrieving text being typed and cursor position using VBA or automation, how? Kallepalle Excel Programming 2 May 23rd 04 12:40 PM


All times are GMT +1. The time now is 08:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"