Forum Discussion
HombreMan-3333
Mar 03, 2023Copper Contributor
Excel Drop Down Delections
I have 70 drop down options.
I use a macro to copy/paste below the drop down list from 10 specific separate columns to the column I am in, the copied column depends which (70 options) is selected.
Currently to paste the right column (70 options as noted) I copy from one of the same 70 columns for all 10 columns, and then paste to the specific address "H34" e.g.) so I need 700 separate instructions to get it right (H34, K34, N34, etc).
Is there a way to paste to the column I am in so I need only 70 separate instructions?
- mathetesSilver Contributor
I am not a macro person but am asking a question that may help them as well: could you back up and explain what the context is here? What kind of data are you dealing with in the first place? What's the basic input and output, the "business purpose" for all of the copying and pasting?
I ask because this sounds--even though you are using a macro--as if it's a heavily "manual" process, causing me to wonder if it might be possible to re-think the entire design. But in order to even address that possibility, we'd need to know what that big picture is.
[And, of course, you're entirely free to ignore these questions. Just understand, if we were sitting down face-to-face, and if I did work with macros, I still would be asking those questions first.]
- HombreMan-3333Copper Contributor
mathetes , sure.
It is an "Equipment Selection" application. 25 criteria that is macro-copied beneath the drop down selection of which equipment you choose, and then it calculates/counts all the items that qualify with those criteria.
So I have 70 pieces of equipment, you pick one, it loads the criteria (copy/paste) and shows how many items fit in the specific chosen equipment.
I have 10 drop downs in 1o different columns that all select from the same data to load the criteria. Because I am pasting below the drop down in each drop-down column, the paste instruction has the specific address of that column. So there are 70 instructions for each column in the macro to paste to the specific column, and since there are 10 columns, that makes 700 macro instructions.
I would think there is a way to copy from the equipment data just as I do now, but paste in a relative column of the drop down I am in and NOT have to give the specific column's address.
- mathetesSilver Contributor
I am having difficulty picturing what you're describing. If this doesn't contain confidential or proprietary information, it would help a LOT if you were to post a copy of the spreadsheet on OneDrive or GoogleDrive and then paste a link here that grants us edit access to that file.