Transferring one sheet information to another

牧云@^-^@ 提交于 2020-01-06 06:05:47

问题


I have an dropped down list with the names of different sheets. I would like to make it such that when I select the appropriate name in sheet, the contents of another sheet is shown on sheet1. Is anyone familiar with such a code or if it is possible? It is actually many hidden sheets of recipes where the user can view the different recipes all in one sheet whichever the user selects. The format of the recipes can be assumed to be the same.

Any help is much appreciated.

Thank you.


回答1:


To make it work, you'll need to use INDIRECT and ADDRESS functions.

If we have the sheet name stored in Sheet1.A2 cell, then the code would be like this for the cell B2:

=INDIRECT($A$2&"!"&ADDRESS(ROW(B2);COLUMN(B2)))

This could should be copied across the range you want to take from other sheets.

Rgds



来源:https://stackoverflow.com/questions/5319939/transferring-one-sheet-information-to-another

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!