PC Review


Reply
Thread Tools Rate Thread

combobox dropdown

 
 
pswanie
Guest
Posts: n/a
 
      19th Jan 2008
cant get this figured out...

dont get this to work

Private Sub ComboBox1_DropButtonClick()
ComboBox1.RowSource = Range("c2:c65536").End(xlUp).Value


End Sub
 
Reply With Quote
 
 
 
 
FSt1
Guest
Posts: n/a
 
      19th Jan 2008
hi
the rowsource property requires a range or cell address. what is the range
value of
Range("c2:c65536").End(xlUp).Value?

regards
FSt1

"pswanie" wrote:

> cant get this figured out...
>
> dont get this to work
>
> Private Sub ComboBox1_DropButtonClick()
> ComboBox1.RowSource = Range("c2:c65536").End(xlUp).Value
>
>
> End Sub

 
Reply With Quote
 
pswanie
Guest
Posts: n/a
 
      19th Jan 2008
huh....? i lost u somewhere.. u need the what?

in column c down i got the following but user has the option to add and i
need that in cluded then

George
George Mall
Knysna

"FSt1" wrote:

> hi
> the rowsource property requires a range or cell address. what is the range
> value of
> Range("c2:c65536").End(xlUp).Value?
>
> regards
> FSt1
>
> "pswanie" wrote:
>
> > cant get this figured out...
> >
> > dont get this to work
> >
> > Private Sub ComboBox1_DropButtonClick()
> > ComboBox1.RowSource = Range("c2:c65536").End(xlUp).Value
> >
> >
> > End Sub

 
Reply With Quote
 
FSt1
Guest
Posts: n/a
 
      19th Jan 2008
hi
the rowsource property require a range address like C1:C10 or similar.
you are setting the rowsource property with......

ComboBox1.RowSource = Range("c2:c65536").End(xlUp).Value

written as you have it, it will only select a single cell. so....
what value is "Range("c2:c65536").End(xlUp).Value?" returning.

if it not a range address, you're setting the wrong value to the rowsource
property.

Regards
FSt1


"pswanie" wrote:

> huh....? i lost u somewhere.. u need the what?
>
> in column c down i got the following but user has the option to add and i
> need that in cluded then
>
> George
> George Mall
> Knysna
>
> "FSt1" wrote:
>
> > hi
> > the rowsource property requires a range or cell address. what is the range
> > value of
> > Range("c2:c65536").End(xlUp).Value?
> >
> > regards
> > FSt1
> >
> > "pswanie" wrote:
> >
> > > cant get this figured out...
> > >
> > > dont get this to work
> > >
> > > Private Sub ComboBox1_DropButtonClick()
> > > ComboBox1.RowSource = Range("c2:c65536").End(xlUp).Value
> > >
> > >
> > > End Sub

 
Reply With Quote
 
pswanie
Guest
Posts: n/a
 
      19th Jan 2008
i got at the moment the three words that need to display. if the user add any
more that needs be added to the dropdown automaticly.

George
George Mall
Knysna

i allready got the code and setups to add another word.

"FSt1" wrote:

> hi
> the rowsource property require a range address like C1:C10 or similar.
> you are setting the rowsource property with......
>
> ComboBox1.RowSource = Range("c2:c65536").End(xlUp).Value
>
> written as you have it, it will only select a single cell. so....
> what value is "Range("c2:c65536").End(xlUp).Value?" returning.
>
> if it not a range address, you're setting the wrong value to the rowsource
> property.
>
> Regards
> FSt1
>
>
> "pswanie" wrote:
>
> > huh....? i lost u somewhere.. u need the what?
> >
> > in column c down i got the following but user has the option to add and i
> > need that in cluded then
> >
> > George
> > George Mall
> > Knysna
> >
> > "FSt1" wrote:
> >
> > > hi
> > > the rowsource property requires a range or cell address. what is the range
> > > value of
> > > Range("c2:c65536").End(xlUp).Value?
> > >
> > > regards
> > > FSt1
> > >
> > > "pswanie" wrote:
> > >
> > > > cant get this figured out...
> > > >
> > > > dont get this to work
> > > >
> > > > Private Sub ComboBox1_DropButtonClick()
> > > > ComboBox1.RowSource = Range("c2:c65536").End(xlUp).Value
> > > >
> > > >
> > > > End Sub

 
Reply With Quote
 
Per Jessen
Guest
Posts: n/a
 
      19th Jan 2008
On 19 Jan., 17:04, FSt1 <F...@discussions.microsoft.com> wrote:
> hi
> the rowsource property require a range address like C1:C10 or similar.
> you are setting the rowsource property with......
>
> ComboBox1.RowSource = Range("c2:c65536").End(xlUp).Value
>
> written as you have it, it will only select a single cell. so....
> what value is "Range("c2:c65536").End(xlUp).Value?" returning.
>
> if it not a range address, you're setting the wrong value to the rowsource
> property.
>
> Regards
> FSt1
>
>
>
> "pswanie" wrote:
> > huh....? i lost u somewhere.. u need the what?

>
> > in column c down i got the following but user has the option to add and i
> > need that in cluded then

>
> > George
> > George Mall
> > Knysna

>
> > "FSt1" wrote:

>
> > > hi
> > > the rowsource property requires a range or cell address. what is the range
> > > value of
> > > Range("c2:c65536").End(xlUp).Value?

>
> > > regards
> > > FSt1

>
> > > "pswanie" wrote:

>
> > > > cant get this figured out...

>
> > > > dont get this to work

>
> > > > Private Sub ComboBox1_DropButtonClick()
> > > > ComboBox1.RowSource = Range("c2:c65536").End(xlUp).Value

>
> > > > End Sub- Skjul tekst i anførselstegn -

>
> - Vis tekst i anførselstegn -


Hi

rSource = Range("C1", Range("C65536").End(xlUp)).Address
ComboBox1.RowSource = rSource

Regards,

Per
 
Reply With Quote
 
pswanie
Guest
Posts: n/a
 
      19th Jan 2008
thanx once more....

ill be sure to mention everybodys help in my project....

"Per Jessen" wrote:

> On 19 Jan., 17:04, FSt1 <F...@discussions.microsoft.com> wrote:
> > hi
> > the rowsource property require a range address like C1:C10 or similar.
> > you are setting the rowsource property with......
> >
> > ComboBox1.RowSource = Range("c2:c65536").End(xlUp).Value
> >
> > written as you have it, it will only select a single cell. so....
> > what value is "Range("c2:c65536").End(xlUp).Value?" returning.
> >
> > if it not a range address, you're setting the wrong value to the rowsource
> > property.
> >
> > Regards
> > FSt1
> >
> >
> >
> > "pswanie" wrote:
> > > huh....? i lost u somewhere.. u need the what?

> >
> > > in column c down i got the following but user has the option to add and i
> > > need that in cluded then

> >
> > > George
> > > George Mall
> > > Knysna

> >
> > > "FSt1" wrote:

> >
> > > > hi
> > > > the rowsource property requires a range or cell address. what is the range
> > > > value of
> > > > Range("c2:c65536").End(xlUp).Value?

> >
> > > > regards
> > > > FSt1

> >
> > > > "pswanie" wrote:

> >
> > > > > cant get this figured out...

> >
> > > > > dont get this to work

> >
> > > > > Private Sub ComboBox1_DropButtonClick()
> > > > > ComboBox1.RowSource = Range("c2:c65536").End(xlUp).Value

> >
> > > > > End Sub- Skjul tekst i anførselstegn -

> >
> > - Vis tekst i anførselstegn -

>
> Hi
>
> rSource = Range("C1", Range("C65536").End(xlUp)).Address
> ComboBox1.RowSource = rSource
>
> Regards,
>
> Per
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
combobox dropdown ReidarT Microsoft VB .NET 2 7th Jun 2005 08:55 PM
DropDown in ComboBox Ralf Herrmann Microsoft Dot NET Compact Framework 1 6th Dec 2004 04:15 PM
Re: Bug: Combobox.dropdown = True during Form.Load event handler causes listbox to be disabled, even though combobox is Enabled. Herfried K. Wagner [MVP] Microsoft Dot NET Framework Forms 0 12th Feb 2004 10:00 PM
Bug: Combobox.dropdown = True during Form.New() causes listbox to be disabled, even though combobox is Enabled. =?Utf-8?B?UmF0a2lsZXk=?= Microsoft Dot NET Framework Forms 1 12th Feb 2004 09:58 PM
Bug: Combobox.dropdown = True during Form.Load event handler causes listbox to be disabled, even though combobox is Enabled. =?Utf-8?B?UmF0a2lsZXk=?= Microsoft Dot NET Framework 0 12th Feb 2004 07:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:43 AM.