PC Review


Reply
Thread Tools Rate Thread

Code Needed For a Macro

 
 
kalyan
Guest
Posts: n/a
 
      13th Sep 2007
I have an excel sheet with the following values

A B
1 1a
1 1b
2 2a
2 2b
3 3a


Now if i try to enter a value in an empty cell...i should get a
dropdown containing the distinct values from the column -A....and when
a value is selected..then when i try to enter a new value in the next
cell i should get a dropdownlist containing the values in column
B..but the one that are related to column A only

ie if i select 1 then the next cell should have only 1a and 1b

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      13th Sep 2007
See http://www.contextures.com/xlDataVal03.html

and http://www.contextures.com/xlDataVal02.html

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"kalyan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have an excel sheet with the following values
>
> A B
> 1 1a
> 1 1b
> 2 2a
> 2 2b
> 3 3a
>
>
> Now if i try to enter a value in an empty cell...i should get a
> dropdown containing the distinct values from the column -A....and when
> a value is selected..then when i try to enter a new value in the next
> cell i should get a dropdownlist containing the values in column
> B..but the one that are related to column A only
>
> ie if i select 1 then the next cell should have only 1a and 1b
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro needed for billing purposes -- any general code ideas ? Zarlot Microsoft Excel Programming 2 16th May 2008 02:49 AM
Can I use code/macro to change code/macro in an existing file? =?Utf-8?B?U2NvdHQgQmVkb3dz?= Microsoft Excel Programming 2 14th Feb 2007 05:50 AM
macro/code needed to export multiple tables to .txt files =?Utf-8?B?RGF3biBCam9yayBCdXpiZWU=?= Microsoft Access External Data 2 31st May 2006 06:24 PM
additional code to filter results of macro needed =?Utf-8?B?TWlrZQ==?= Microsoft Access Macros 1 1st May 2006 09:06 PM
Batch file to start multiple excel files with auto_open() macro. Delay code needed pierrelap@gmail.com Microsoft Excel Programming 9 29th May 2005 07:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:15 AM.