ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   dropdown list that take data dynamiclly (https://www.excelbanter.com/excel-programming/280279-dropdown-list-take-data-dynamiclly.html)

efi[_2_]

dropdown list that take data dynamiclly
 
Hi all,
My problem is that I defined a column as drop down list (by using
validation).
My problem is that I want that the data that will be placed in the drop
down list will be taken from a file which I will be open in the
function "Workbook_Open".

I need each cell in the column to be defined as drop down list, so this
is why I used validation.
I don't know before I open the specific file which data will be in the
drop down list.

I didn't find any way to access to these dropdown list and to insert
data to it from VB.

If you have any other ideas how to achieve ny goal in another way, I
will be happy to hear.
thanxs.



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/


steve

dropdown list that take data dynamiclly
 
One way is to use a defined name as the list source for the validation drop
downs. Than have vb recreate the name. You can than leave the drop
downs as is and they should adjust after the code redefines the name.

Use the recorder if you need code to do this...

--
sb
"efi" wrote in message
...
Hi all,
My problem is that I defined a column as drop down list (by using
validation).
My problem is that I want that the data that will be placed in the drop
down list will be taken from a file which I will be open in the
function "Workbook_Open".

I need each cell in the column to be defined as drop down list, so this
is why I used validation.
I don't know before I open the specific file which data will be in the
drop down list.

I didn't find any way to access to these dropdown list and to insert
data to it from VB.

If you have any other ideas how to achieve ny goal in another way, I
will be happy to hear.
thanxs.



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/




efi[_3_]

dropdown list that take data dynamiclly
 
Hi,
10x for your answer, but what is the recorder?, can you give me some
tips how to do this?



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/


steve

dropdown list that take data dynamiclly
 
efi,

To record a macro:
Go to the Tools menu
Select Macro
Select Record New Macro

Give the Macro a name in the Macro name: box.
Set where to store the macro in the Store macro in: box.
you'll probably want to put it into 'This Workbook'
Highlight (select) the range that contains the list
Than go the Insert menu
Select name
Select Define
Enter a name in the Names in workbook: box
click Add
click OK
Click the Stop record button.

Go to the Tools menu
Select Viual Basic Editor
Edit the code if needed.

Now you have code to recreate the name each time.

--
sb
"efi" wrote in message
...
Hi,
10x for your answer, but what is the recorder?, can you give me some
tips how to do this?



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/




Tom Ogilvy

dropdown list that take data dynamiclly
 
Tools=Macro=Record a New macro

Turns on the macro recorder

Manually perform actions you want code for. Then click the stop recording
button on the recording toolbar (which should be made visible when you start
recording). Then go to the VBE (Alt+F11) and see what you have recorded.
Modify it so you can use it as a macro in the way you want.

--
Regards,
Tom Ogilvy

"efi" wrote in message
...
Hi,
10x for your answer, but what is the recorder?, can you give me some
tips how to do this?



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/




efi[_4_]

dropdown list that take data dynamiclly
 
10x for all the help.



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



All times are GMT +1. The time now is 10:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com