Does this need require a macro or VBA?

ibddude

New Member
Joined
Aug 20, 2011
Messages
17
I have a worksheet containing rows of data (say 30-40 columns). What I need to do is when I find certain values within a particular column, I need to insert X number of new rows below it containing other information (sub parts) to the main value. Say S12 contained XYZBundle, I would then want to insert 4 rows of additonal data pertaining to XYZBundle right below it, then move to the next value (say S12 + 4, or S17)..and so on.

Do you need a macro or VBA to "Insert" rows of data? I'm imagining a VLOOKUP function to determine if it needed rows inserted and then a table to say how many and the content...

ANy ideas would be helpful

THanks
Ibddude
 
Sounds like it would require a macro to me. Something like a loop that goes through all the cells in that column you have your data in and if it finds one of the preset values inserts a certain number of rows with the set data you want in them. Hope this helps.
 
Upvote 0
Thanks. I actually haven't done a macro, but Is this something where you record say a part of the operation (like inserting rows) and then you combine it with other fuctions like VLOOKUP to create a complete "macro"

THanks for your response
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top