close

I have created a drop down list/box in excel. However, I am trying get a
cell on another worksheet to read whatever gets chosen in the drop down list
box. I have found a visual basic code for doing it using a list box, but
can't seem to get it to work using a drop-down box.

Any help would be gratefully appreciated.

Can you not just put ='Sheet1'!A1 or whatever the cell reference is?

quot;Sezquot; wrote:

gt; I have created a drop down list/box in excel. However, I am trying get a
gt; cell on another worksheet to read whatever gets chosen in the drop down list
gt; box. I have found a visual basic code for doing it using a list box, but
gt; can't seem to get it to work using a drop-down box.
gt;
gt; Any help would be gratefully appreciated.

Can you not just put the cell reference, eg. ='Sheet 1'!A1 for it to copy
this information?

quot;Sezquot; wrote:

gt; I have created a drop down list/box in excel. However, I am trying get a
gt; cell on another worksheet to read whatever gets chosen in the drop down list
gt; box. I have found a visual basic code for doing it using a list box, but
gt; can't seem to get it to work using a drop-down box.
gt;
gt; Any help would be gratefully appreciated.

The drop down box does not sit in the cell - it sits on top - if I were to
use the ='Sheet1'!A1 cell reference - nothing would appears in the cell.

quot;PaulWquot; wrote:

gt; Can you not just put ='Sheet1'!A1 or whatever the cell reference is?
gt;
gt; quot;Sezquot; wrote:
gt;
gt; gt; I have created a drop down list/box in excel. However, I am trying get a
gt; gt; cell on another worksheet to read whatever gets chosen in the drop down list
gt; gt; box. I have found a visual basic code for doing it using a list box, but
gt; gt; can't seem to get it to work using a drop-down box.
gt; gt;
gt; gt; Any help would be gratefully appreciated.

It depends on what a dropdown listbox is.

If you used a dropdown from the forms toolbar, you could use a linked cell to
return the index of the selected item.

Say you used A1:A10 as the Input range.
And you used B1 as the Linked cell.
You could put this in C1:
=if(b1=quot;quot;,quot;quot;,index(a1:a10,b1))

If you used a combobox from the Control toolbox toolbar, you could use the value
in that linked cell directly.

For the dropdown from the Forms toolbar, you can rightclick on it, choose Format
Control, then Control to get to the dialog for these settings.

For the combobox from the control toolbox toolbar, you have to go into design
mode (another icon on that same toolbar) and then rightclick and choose
properties to see them.

Sez wrote:
gt;
gt; I have created a drop down list/box in excel. However, I am trying get a
gt; cell on another worksheet to read whatever gets chosen in the drop down list
gt; box. I have found a visual basic code for doing it using a list box, but
gt; can't seem to get it to work using a drop-down box.
gt;
gt; Any help would be gratefully appreciated.

--

Dave Peterson

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()