Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Combobox: Selecting values from a row and place in combi box plus update

Hi
I have been asked to create a combo box containing the following information. From a row I need to select the information from, for example A1:X1, and place this in a combo box.
However if a new column is created/inserted the combo box should allow for this and the new value should appear in the combo box list.

Hope that makes sense
Any help on how to do this is much appreciated
New user
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Combobox: Selecting values from a row and place in combi box plus update

You could try this. It works for me in a column so I don't
see why it shouldn't work with a row.

dim Mylastcell
Mylastcell = worksheets("name").Range("A1") _
..End(xlToRight).Address(ROWABSOLUTE:=False)

with worksheets("name").combobox1
.list = worksheets("name").Range("A1:" & _
Mylastcell).value
end with

hth


-----Original Message-----
Hi
I have been asked to create a combo box containing the

following information. From a row I need to select the
information from, for example A1:X1, and place this in a
combo box.
However if a new column is created/inserted the combo box

should allow for this and the new value should appear in
the combo box list.

Hope that makes sense
Any help on how to do this is much appreciated
New user
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Combobox: Selecting values from a row and place in combi box plus update

Thanks George I'll try it

I tried the below myself and it seems to be a start as well
Private Sub ComboBox1_DropButtonClick(
Dim n As Intege
ComboBox1.Clea
For n = 7 To 99
If IsEmpty(Sheet2.Cells(7, n)) = True The
Exit Su
End I
ComboBox1.AddItem (Sheet2.Cells(7, n)
Next
End Su

Thanks again
New User
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
Bar and Line graph combi? GD Excel Discussion (Misc queries) 1 November 24th 08 12:31 PM
Need to update a ComboBox when selecting a sheet [email protected] Excel Worksheet Functions 1 October 31st 07 02:23 PM
Selecting any cell in a column I want my ComboBox to show. How? ABP MLundqvist Excel Discussion (Misc queries) 4 March 1st 06 01:15 PM
Dynamic update on ComboBox Kevin Excel Programming 4 October 14th 03 12:45 PM
Selecting/Activating Control Tools Combobox on Sheet steve Excel Programming 5 October 10th 03 10:38 PM


All times are GMT +1. The time now is 06:57 PM.

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"