Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 82
Default Macro to add rows and populate cells based on critera

This might be difficult to explain...

I have a list of products that is used to create an order. Some of the
products (not all) are complex and the vendor supplying the material breaks
certain items out into components when they invoice because the parts and
pieces ship at different times.

I need a macro that will:
1. Look for a keyword in the item number cell (always in the same column)
2. Add two rows below the item
3. Inherit values from the parent product (markings & quanity) and add new
description text.

Here is an example. (panelboard is one of a few products that will need the
same approach)

I have now:
Marking Qty Item Number
HLM 1 Panelboard, Type AE (101)
HLN 1 Panelboard, Type AE (101)
M1 1 Panelboard, Type AE (101)
M2 1 Panelboard, Type AE (101)
N5 1 Panelboard, Type AE (101)

Need to end up with:
Marking Qty Item Number
HLM 1 Panelboard, Type AE (101)
HLM 1 Back Box
HLM 1 Trim
HLN 1 Panelboard, Type AE (101)
HLN 1 Back Box
HLN 1 Trim
M1 1 Panelboard, Type AE (101)
M1 1 Back Box
M1 1 Trim
M2 1 Panelboard, Type AE (101)
M2 1 Back Box
M2 1 Trim
N5 1 Panelboard, Type AE (101)
N5 1 Back Box
N5 1 Trim


Thanks in advance!

Scott
Reply
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
Populate cells based on key cell Banshee[_2_] Excel Discussion (Misc queries) 4 September 8th 09 04:49 PM
How to auto populate many cells based on one cell Banshee Excel Discussion (Misc queries) 4 August 5th 09 12:22 AM
Write a macro that hides rows based on empty cells Mac0001UK Excel Discussion (Misc queries) 3 March 10th 09 12:37 PM
Add cells based on critera Needs help[_2_] Excel Discussion (Misc queries) 3 November 1st 07 08:02 PM
Auto populate cells based on 2 cells division. Chance224 Excel Discussion (Misc queries) 0 April 4th 05 09:35 PM


All times are GMT +1. The time now is 07:23 PM.

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"