Forum Discussion
Export row to multiple sheets
Hello,
I'm pretty new to the world of Excel. I'm trying to figure out how to do the following and I'm hoping someone can assist me.
I have one sheet that contains hundreds of rows of data. The rows are compiled like this.
Building #: Address: Type: Info A: Info B: Info C: etc:
I need to take every row and export it into its own sheet, or separate file. Then on that separate file or sheet, I need to have it fill out a form automatically. Is there a standard method for performing this operation? I appreciate any assistance.
Thank you,
Cory
6 Replies
- Matt MickleBronze Contributor
To my knowledge there is no standard method for separating out one row of data into many different workbooks. You would need to use a macro (VBA) to accomplish this task. Writing the code for this is fairly simple, but I see you are referencing a form. What type of form are you trying to fill in? A web form? An Excel userform? A worksheet form? The more detailed information you can provide the better possibility you will get a favorable response from the community. Can you please provide a non-sensitive example file or a few screenshots to further illustrate your issue?
- Cory McKissickCopper Contributor
Hello Matt, thank you for the reply.
I used the word "form," but I suppose I should just say that I need to export it to another sheet. If I have the data in one sheet like this...
1: Building-A: Location-A: Data-D: Data-E: Data-F
2: Building-B: Location-B: Data-D: Data-E: Data-F
3: Building-C: Location-C: Data-D: Data-E: Data-F
I would like to create three separate sheets that look something like this.
Building-A
Location-A
Data-D: Data-F
Then input boxes for a different user to fill in.
Once I see the code for moving the data from one row to another sheet, then I can probably figure out the rest. Notice that I didn't include Data-E on the new sheet. I don't need all of the information from each row.
Again, I appreciate the assistance.
Cory
Hello,
I'm sure you describe what you want to achieve and it makes sense to you, but it is probably not the best information architecture for efficient workbook design. Hundreds of sheets sounds like a bad plan.
If you have all the core data on one sheet, you have the perfect starting point. It would make a lot more sense to create just one new sheet with a form. Give the user a control to select which row of data they want to edit and bring up that data in the sheet (form). Let the user fill in the fields and use VBA to write the data to the corresponding row in the initial sheet.
Excel can be very dynamic. It is more efficient to create ONE sheet and load the data from the data table, than creating hundreds of sheets that all look the same. If you spread the data over many sheets, you will have a lot of difficulty reporting on the data, but if it all stays in one sheet, reporting will be a breeze.