Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Code Needed For a Macro

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Code Needed For a Macro

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" wrote in message
oups.com...
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
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
VBA code help needed Martin Excel Discussion (Misc queries) 3 April 28th 06 09:28 AM
Batch file to start multiple excel files with auto_open() macro. Delay code needed [email protected] Excel Programming 9 May 29th 05 07:02 AM
Code Needed Carolyn[_3_] Excel Programming 4 June 16th 04 01:26 PM
Better code needed ceplane Excel Programming 6 May 10th 04 07:59 PM
Code Fix Needed Phil Hageman[_3_] Excel Programming 2 February 28th 04 01:16 AM


All times are GMT +1. The time now is 04:46 PM.

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

About Us

"It's about Microsoft Excel"