Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default dropdownmenu with additem

Hi again,

next 2 problems i'm struggling with in vba.

Problem 1:
I would like for a cell(A1) to have a dropdownmenu just like a validated
cell, but the list is in a different worksheet of the same workbook.(for
example: sheet2 range $B$B)

Problem 2:
The menu provided have to have the abbility to add new items to that list.

Does anyone have an idea?

Regards,
Peter


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default dropdownmenu with additem

define a name

Insert = Name =Define

Name: List1
RefersTo: =Sheet3!$A$1:$A$10

then use

=List1

in the textbox where you define the location of the list in data validation

To make it dynamic, change refers to in the named range to be:

=Offset(Sheet3!$A$1,0,0,Count(Sheet3!$A1:$A50),1)

as an example.

--
Regards,
Tom Ogilvy

"Peter" wrote in message
...
Hi again,

next 2 problems i'm struggling with in vba.

Problem 1:
I would like for a cell(A1) to have a dropdownmenu just like a validated
cell, but the list is in a different worksheet of the same workbook.(for
example: sheet2 range $B$B)

Problem 2:
The menu provided have to have the abbility to add new items to that list.

Does anyone have an idea?

Regards,
Peter




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
DropdownMenu-how can I use the down arrow to choose my option? funkymonty Excel Worksheet Functions 1 January 27th 09 06:44 PM
Help with: ListBox1.AddItem (ws.Name) Ron de Bruin Excel Worksheet Functions 0 May 18th 05 07:02 PM
combobox additem masterphilch Excel Programming 2 October 25th 04 11:04 PM
additem performance Mark[_51_] Excel Programming 2 September 8th 04 12:37 PM
.additem Robert Couchman[_4_] Excel Programming 3 February 20th 04 02:47 PM


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