Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default 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/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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/

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default 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/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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/





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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/

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dropdown list for entering data JRD Excel Discussion (Misc queries) 2 June 14th 09 10:34 PM
Pulling data from other wb based on data to populate dropdown list Suzann Excel Discussion (Misc queries) 0 April 23rd 09 04:29 PM
Dropdown list and filtered data Kerrie Wood 45693[_2_] Excel Discussion (Misc queries) 8 April 2nd 09 01:57 PM
Data validation with dropdown list geotso Excel Discussion (Misc queries) 2 February 1st 09 05:59 PM
Entering data from dropdown list Bruce M Excel Discussion (Misc queries) 8 February 8th 06 02:18 AM


All times are GMT +1. The time now is 08:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"