Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Drop down list macro?


I have a sheet set up that uses columns B through L. A macro is set up to
insert an extra row keeping the format at the end of the list when a command
button is clicked. I have a drop down list in column C formatted for the
list. How or what can I put in the macro that would regenerate that drop
down list in column C on the new row?

--
Rob
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,073
Default Drop down list macro?

soteman wrote:
I have a sheet set up that uses columns B through L. A macro is set up to
insert an extra row keeping the format at the end of the list when a command
button is clicked. I have a drop down list in column C formatted for the
list. How or what can I put in the macro that would regenerate that drop
down list in column C on the new row?

--
Rob


Hi Rob,

You could make your drop down list a dynamic named range. To do this
you could go Insert|Name...|Define...|type a suitable name in the
"Names in workbook:" box (eg "DropDownList1" w/o speech marks)|type the
following formula into the "Refers to:" box
"=OFFSET(Sheet1!$C$1,1,0,COUNTA(Sheet1!$C:$C)-1)" w/o speech
marks|Click the "Add" button|OK.

The formula in the "Refers to:" box assumes that your drop down list
has a heading in C1 that is not to be a part of the list. If C1 is not
a heading and is a part of the list then change the formula to
"=OFFSET(Sheet1!$C$1,0,0,COUNTA(Sheet1!$C:$C)) ". Also, edit the Sheet
name in the formula if your list is not on Sheet1.

In the "Source:" box on the Data Validation dialog use "=DropDownList1"
w/o speech marks.

Ken Johnson

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
can you make a drop down list in a drop down list? Sburlingham Excel Discussion (Misc queries) 18 October 12th 09 07:58 AM
Drop down list as part of a file name selector Guido Excel Discussion (Misc queries) 1 May 25th 06 07:13 PM
Run macro from drop list Jeze77 Excel Discussion (Misc queries) 0 April 6th 06 05:23 PM
Order of drop down list Cash Excel Discussion (Misc queries) 1 April 4th 06 11:12 PM
Selecting from a Validation Drop Down Box aborts macro Lreeder Excel Worksheet Functions 0 August 27th 05 01:41 AM


All times are GMT +1. The time now is 03:01 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"