Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Transpose range for drop down list

Hi there,

I have a drop down list which refers to a range of data.
As far as I understood, the range of data has to be defined vertically (in a
column) to be used by the drop down list. My issue is that the range of data
I would like to refer to is set in a row.. How can I link the drop down list
to this horizontal range (ideally without copy pasting the range with paste
special Transpose)?
  #2   Report Post  
Posted to microsoft.public.excel.programming
ctm ctm is offline
external usenet poster
 
Posts: 10
Default Transpose range for drop down list

Try using a Combobox instead and populate it with vba in a single row.
Private Sub ComboBox1_DropButtonClick()
ComboBox1.Clear
ComboBox1.AddItem Sheet1.Range("A1").Value
ComboBox1.AddItem Sheet1.Range("B1").Value
ComboBox1.AddItem Sheet1.Range("C1").Value
ComboBox1.AddItem Sheet1.Range("D1").Value
ComboBox1.AddItem Sheet1.Range("E1").Value
ComboBox1.AddItem Sheet1.Range("F1").Value
ComboBox1.AddItem Sheet1.Range("G1").Value
ComboBox1.AddItem Sheet1.Range("H1").Value
ComboBox1.AddItem Sheet1.Range("I1").Value
ComboBox1.AddItem Sheet1.Range("J1").Value
End Sub

"Bonobo" wrote in message
...
Hi there,

I have a drop down list which refers to a range of data.
As far as I understood, the range of data has to be defined vertically (in
a
column) to be used by the drop down list. My issue is that the range of
data
I would like to refer to is set in a row.. How can I link the drop down
list
to this horizontal range (ideally without copy pasting the range with
paste
special Transpose)?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Transpose range for drop down list

I would prefer not to change to a combobox... isn't there a similar way with
a drop down list?

"ctm" wrote:

Try using a Combobox instead and populate it with vba in a single row.
Private Sub ComboBox1_DropButtonClick()
ComboBox1.Clear
ComboBox1.AddItem Sheet1.Range("A1").Value
ComboBox1.AddItem Sheet1.Range("B1").Value
ComboBox1.AddItem Sheet1.Range("C1").Value
ComboBox1.AddItem Sheet1.Range("D1").Value
ComboBox1.AddItem Sheet1.Range("E1").Value
ComboBox1.AddItem Sheet1.Range("F1").Value
ComboBox1.AddItem Sheet1.Range("G1").Value
ComboBox1.AddItem Sheet1.Range("H1").Value
ComboBox1.AddItem Sheet1.Range("I1").Value
ComboBox1.AddItem Sheet1.Range("J1").Value
End Sub

"Bonobo" wrote in message
...
Hi there,

I have a drop down list which refers to a range of data.
As far as I understood, the range of data has to be defined vertically (in
a
column) to be used by the drop down list. My issue is that the range of
data
I would like to refer to is set in a row.. How can I link the drop down
list
to this horizontal range (ideally without copy pasting the range with
paste
special Transpose)?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default Transpose range for drop down list

Drop Down lists (Data Validation) works for a column OR a row of data. What
seems to be the problem?

"Bonobo" wrote:

Hi there,

I have a drop down list which refers to a range of data.
As far as I understood, the range of data has to be defined vertically (in a
column) to be used by the drop down list. My issue is that the range of data
I would like to refer to is set in a row.. How can I link the drop down list
to this horizontal range (ideally without copy pasting the range with paste
special Transpose)?

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
select range from drop down list LDP Analyst[_2_] Charts and Charting in Excel 0 January 29th 08 08:38 PM
drop-down List range define vassilis Excel Discussion (Misc queries) 4 December 17th 06 07:26 PM
Excel Drop down List with Named Range GregDAngelo Excel Programming 0 May 11th 06 03:32 PM
input range in drop down list Otto Excel Discussion (Misc queries) 3 July 27th 05 09:09 PM
VBA - Drop down; list range Timse[_6_] Excel Programming 1 July 15th 04 12:13 AM


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