Forum Discussion
How to insert a row in worksheet A and have it auto populate in worksheet B
jessica-tls1I agree with Wyn Hopkins that pivot maybe a more feasible option to explore vs VBA.
Just to check though, how often are the file updated? Once a month? Once a week or? If the frequency is high it'd make sense to invest some time initially to automate via VBA; else I'd recommend to go for the pivot table option.
crazyshoots, @Wyn Hopkins Did the two of you look at the original workbook sample that @jessica-tls1 posted. She has a lot of empty cells in hidden columns in her Sheet B. This led me to think that input is ultimately expected on Sheet B as well as on Sheet A.
The "presenting problem" is one of inserting a row so as to have the various items listed in a particular order. What's never been made clear is exactly how Sheet B, which would appear to be a secondary sheet, is going to be used. It definitely appears to be more than a simple 'output." If it were that, only an "output" document, the Pivot Table would work (although, again, the multiple hidden columns that are there and NOT on Sheet A, raise questions).
My own sense--pending a fuller description of the full "business process" here-- remains that she'd be better off with Custom Views of a single spreadsheet, one that includes all columns that will eventually be needed, going through these steps:
- enter items in any order into the equivalent of Sheet A, a view that only displays those columns
- use Data....Sort...when needed to re-arrange the order to that desired
- use Custom View (any number of which could be created, as needed) to display whatever arrangement of columns is needed at the time
This would allow what currently is Sheet B--but would simply be a different View of the same underlying data table--to be used for simple information OR for data input.
(And, frankly, I think it would be simpler once established, than a Pivot Table with all sorts of filters.)
Fundamentally, though, we need a more complete description of how the input and output will be used, and as crazyshoots has said, how frequently (and by whom) data will be updated. Without that, any "solution" may be off-track, making things more complicated than they need be.
- crazyshootsDec 10, 2019Brass Contributor
mathetes Hi, yes, but looking sheet A I'm thinking it could be a requirement from business point of view. I've worked in company before that insist on such formats even though it's not productive but still..
Let's see what Jessica's real need is and help her accordingly. 🙂
- coxyroxDec 10, 2019Copper Contributor
Here is an idea you can alter to suit your needs, maybe.
- Wyn HopkinsDec 11, 2019MVP
- coxyroxDec 10, 2019Copper ContributorMaybe use 'Filter" or 'Indirect' fuction.
- Wyn HopkinsDec 10, 2019MVP
Hi mathetes
I agree, not much point in hypothesising about a solution. That's why I asked a question about considering a Pivot Table on sheet B and capturing all data on sheet A.
We await jessica-tls1 's response...