Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to refer dropdown control in excel sheet using VBA

Status
Not open for further replies.

kiransalu

Programmer
Jan 21, 2003
29
0
0
US


It shows three properities
Input Range
Cell link
Dropdown lines.

Now i want to dynamically set the input range for this control. When i go VBA i couldn't find the name of this control. how do i set the range during run time.

 


Hi,

Code:
WhatSheet.shapes("MyDropDown").OLEFormat.Object.ListFillRange = "MyRangeName"


Skip,
[sub]
[glasses] [red]Be advised:[/red]When Viscounts were guillotined just as they were disclosing where their jewels were hidden, it shows to go that you should...
Never hatchet your Counts before they chicken! [tongue][/sub]
 
Wow. Excellent. It's working now.

Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top