Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
gaalseth
 
Posts: n/a
Default How do I create a macro to return drop down boxes to first item i.

I am using Excel 2000 and have created serveral combo boxes using the forms
menu. I want to create a macro that returns each drop down box to the first
item in the list of choices, or alternatively to an empty state. The combo
boxes all appear on the same sheet and the lists of items and cell references
are all on a different sheet. My familiarity with visual basic is very
limited.
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

Option Explicit
Sub testme()

Dim myDD As DropDown

For Each myDD In ActiveSheet.DropDowns
myDD.ListIndex = 0 ' or 1
Next myDD

End Sub

0 clears the dropdown.
1 choses the first choice.

gaalseth wrote:

I am using Excel 2000 and have created serveral combo boxes using the forms
menu. I want to create a macro that returns each drop down box to the first
item in the list of choices, or alternatively to an empty state. The combo
boxes all appear on the same sheet and the lists of items and cell references
are all on a different sheet. My familiarity with visual basic is very
limited.


--

Dave Peterson
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
How to Create an Excel Macro to send a meeting request. DM HD Excel Discussion (Misc queries) 2 February 28th 05 02:39 PM
Dynamic Drop Down Boxes Scooter Excel Worksheet Functions 1 February 8th 05 05:22 AM
Macro to create macro Carl Bowman Excel Discussion (Misc queries) 2 February 6th 05 10:49 AM
How do I create a macro of editing keystrokes? scjanner Excel Discussion (Misc queries) 0 January 21st 05 11:07 PM
How do you create a drop down list? Aviator Excel Discussion (Misc queries) 2 December 28th 04 03:07 PM


All times are GMT +1. The time now is 06:19 AM.

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"