- Joined
- Feb 1, 2012
- Messages
- 1
- Reaction score
- 0
Hey guys,
So I am pretty new to the Macro world but the thing I want to be able to do is to insert lines based on specific criteria. I have read a few other posts but my requirments are a little more in depth. I'll try and explain the best I can but the information that I have is presented in a list. The user would go to that specific cell containing the list, and when a string is chosen within that list, rows would be inserted below depending on what is chosen. For example, say that cell C5 contains a list with data including "Fruit", "Vegetables", and "Empty". If the user were to select "Fruit", 3 rows would be inserted below (in C6-C8) with strings stating "Apples" in C6, "Oranges" in C7, and "Pears" in C8. If that user were to go back to the list (in C5) and select "Vegetables", the rows that were created for fruit (in C6-C8) would be removed and 4 rows would now be insereted below C5 (C6-C9) with strings stating "Carrots" in C6, "Broccoli" in C7, "Beans" in C8, and "Peas" in C9. Lastly, if the user were to choose "Empty", the rows that were created for "Vegetables" would be removed and there would be nothing below C5. (Note: the list that would be created in C5 would also be created in C6. Therefore when rows are added based on the string chosen, they would be inserted in between the two lists found in C5 and C6) I appologize if this is confusing but any help would be much appreciated. Also please let me know if any further information would be helpful.
So I am pretty new to the Macro world but the thing I want to be able to do is to insert lines based on specific criteria. I have read a few other posts but my requirments are a little more in depth. I'll try and explain the best I can but the information that I have is presented in a list. The user would go to that specific cell containing the list, and when a string is chosen within that list, rows would be inserted below depending on what is chosen. For example, say that cell C5 contains a list with data including "Fruit", "Vegetables", and "Empty". If the user were to select "Fruit", 3 rows would be inserted below (in C6-C8) with strings stating "Apples" in C6, "Oranges" in C7, and "Pears" in C8. If that user were to go back to the list (in C5) and select "Vegetables", the rows that were created for fruit (in C6-C8) would be removed and 4 rows would now be insereted below C5 (C6-C9) with strings stating "Carrots" in C6, "Broccoli" in C7, "Beans" in C8, and "Peas" in C9. Lastly, if the user were to choose "Empty", the rows that were created for "Vegetables" would be removed and there would be nothing below C5. (Note: the list that would be created in C5 would also be created in C6. Therefore when rows are added based on the string chosen, they would be inserted in between the two lists found in C5 and C6) I appologize if this is confusing but any help would be much appreciated. Also please let me know if any further information would be helpful.