PC Review


Reply
Thread Tools Rate Thread

Combo Userform

 
 
mazu
Guest
Posts: n/a
 
      23rd Apr 2008
Hi,

I have already populated a combox reffering cells from an excel sheet. Here
is the Code.
With ActiveSheet
MyList(0, 0) = .Range("A1")
MyList(1, 0) = .Range("A2")
MyList(2, 0) = .Range("A3")
MyList(3, 0) = .Range("A4")
End With
ComboBox2.List() = MyList

Now i want to update or change values in excel sheet by typing the values in
combo box. I tried to play with listindex, controlsource but could not make
it.

Anybody has an idea, please let me know.
Thanks,

Mazu
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      23rd Apr 2008
If the combobox doesn't have anything selected, and you type: QWER
What cell gets that value?

If the combobox does have a value, how would you know what cell got the value?

mazu wrote:
>
> Hi,
>
> I have already populated a combox reffering cells from an excel sheet. Here
> is the Code.
> With ActiveSheet
> MyList(0, 0) = .Range("A1")
> MyList(1, 0) = .Range("A2")
> MyList(2, 0) = .Range("A3")
> MyList(3, 0) = .Range("A4")
> End With
> ComboBox2.List() = MyList
>
> Now i want to update or change values in excel sheet by typing the values in
> combo box. I tried to play with listindex, controlsource but could not make
> it.
>
> Anybody has an idea, please let me know.
> Thanks,
>
> Mazu


--

Dave Peterson
 
Reply With Quote
 
mazu
Guest
Posts: n/a
 
      23rd Apr 2008
Hi Dave,

Thanks for your response.
I am asking the same questions that you are asking.
If you know how to solve this problem that will be great.


"Dave Peterson" wrote:

> If the combobox doesn't have anything selected, and you type: QWER
> What cell gets that value?
>
> If the combobox does have a value, how would you know what cell got the value?
>
> mazu wrote:
> >
> > Hi,
> >
> > I have already populated a combox reffering cells from an excel sheet. Here
> > is the Code.
> > With ActiveSheet
> > MyList(0, 0) = .Range("A1")
> > MyList(1, 0) = .Range("A2")
> > MyList(2, 0) = .Range("A3")
> > MyList(3, 0) = .Range("A4")
> > End With
> > ComboBox2.List() = MyList
> >
> > Now i want to update or change values in excel sheet by typing the values in
> > combo box. I tried to play with listindex, controlsource but could not make
> > it.
> >
> > Anybody has an idea, please let me know.
> > Thanks,
> >
> > Mazu

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      24th Apr 2008
Always put it in the top cell????

It's a solution, but probably not the correct one!



mazu wrote:
>
> Hi Dave,
>
> Thanks for your response.
> I am asking the same questions that you are asking.
> If you know how to solve this problem that will be great.
>
> "Dave Peterson" wrote:
>
> > If the combobox doesn't have anything selected, and you type: QWER
> > What cell gets that value?
> >
> > If the combobox does have a value, how would you know what cell got the value?
> >
> > mazu wrote:
> > >
> > > Hi,
> > >
> > > I have already populated a combox reffering cells from an excel sheet. Here
> > > is the Code.
> > > With ActiveSheet
> > > MyList(0, 0) = .Range("A1")
> > > MyList(1, 0) = .Range("A2")
> > > MyList(2, 0) = .Range("A3")
> > > MyList(3, 0) = .Range("A4")
> > > End With
> > > ComboBox2.List() = MyList
> > >
> > > Now i want to update or change values in excel sheet by typing the values in
> > > combo box. I tried to play with listindex, controlsource but could not make
> > > it.
> > >
> > > Anybody has an idea, please let me know.
> > > Thanks,
> > >
> > > Mazu

> >
> > --
> >
> > Dave Peterson
> >


--

Dave Peterson
 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      24th Apr 2008
Ps. Maybe using Data|Form (xl2003 menus) would be more effective here.

mazu wrote:
>
> Hi Dave,
>
> Thanks for your response.
> I am asking the same questions that you are asking.
> If you know how to solve this problem that will be great.
>
> "Dave Peterson" wrote:
>
> > If the combobox doesn't have anything selected, and you type: QWER
> > What cell gets that value?
> >
> > If the combobox does have a value, how would you know what cell got the value?
> >
> > mazu wrote:
> > >
> > > Hi,
> > >
> > > I have already populated a combox reffering cells from an excel sheet. Here
> > > is the Code.
> > > With ActiveSheet
> > > MyList(0, 0) = .Range("A1")
> > > MyList(1, 0) = .Range("A2")
> > > MyList(2, 0) = .Range("A3")
> > > MyList(3, 0) = .Range("A4")
> > > End With
> > > ComboBox2.List() = MyList
> > >
> > > Now i want to update or change values in excel sheet by typing the values in
> > > combo box. I tried to play with listindex, controlsource but could not make
> > > it.
> > >
> > > Anybody has an idea, please let me know.
> > > Thanks,
> > >
> > > Mazu

> >
> > --
> >
> > Dave Peterson
> >


--

Dave Peterson
 
Reply With Quote
 
mazu
Guest
Posts: n/a
 
      24th Apr 2008
Hi Dave,

What do you mean by that "Data|Form (xl2003 menus"
Thanks,


"Dave Peterson" wrote:

> Ps. Maybe using Data|Form (xl2003 menus) would be more effective here.
>
> mazu wrote:
> >
> > Hi Dave,
> >
> > Thanks for your response.
> > I am asking the same questions that you are asking.
> > If you know how to solve this problem that will be great.
> >
> > "Dave Peterson" wrote:
> >
> > > If the combobox doesn't have anything selected, and you type: QWER
> > > What cell gets that value?
> > >
> > > If the combobox does have a value, how would you know what cell got the value?
> > >
> > > mazu wrote:
> > > >
> > > > Hi,
> > > >
> > > > I have already populated a combox reffering cells from an excel sheet. Here
> > > > is the Code.
> > > > With ActiveSheet
> > > > MyList(0, 0) = .Range("A1")
> > > > MyList(1, 0) = .Range("A2")
> > > > MyList(2, 0) = .Range("A3")
> > > > MyList(3, 0) = .Range("A4")
> > > > End With
> > > > ComboBox2.List() = MyList
> > > >
> > > > Now i want to update or change values in excel sheet by typing the values in
> > > > combo box. I tried to play with listindex, controlsource but could not make
> > > > it.
> > > >
> > > > Anybody has an idea, please let me know.
> > > > Thanks,
> > > >
> > > > Mazu
> > >
> > > --
> > >
> > > Dave Peterson
> > >

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      24th Apr 2008
I use xl2003. In xl2007, MS introduced the Ribbon. Everything got rearranged.

In xl2003, you'd click on the Data menu, then click on Form.

I don't know where it is in xl2007. But I bet you could find it.

mazu wrote:
>
> Hi Dave,
>
> What do you mean by that "Data|Form (xl2003 menus"
> Thanks,
>
> "Dave Peterson" wrote:
>
> > Ps. Maybe using Data|Form (xl2003 menus) would be more effective here.
> >
> > mazu wrote:
> > >
> > > Hi Dave,
> > >
> > > Thanks for your response.
> > > I am asking the same questions that you are asking.
> > > If you know how to solve this problem that will be great.
> > >
> > > "Dave Peterson" wrote:
> > >
> > > > If the combobox doesn't have anything selected, and you type: QWER
> > > > What cell gets that value?
> > > >
> > > > If the combobox does have a value, how would you know what cell got the value?
> > > >
> > > > mazu wrote:
> > > > >
> > > > > Hi,
> > > > >
> > > > > I have already populated a combox reffering cells from an excel sheet. Here
> > > > > is the Code.
> > > > > With ActiveSheet
> > > > > MyList(0, 0) = .Range("A1")
> > > > > MyList(1, 0) = .Range("A2")
> > > > > MyList(2, 0) = .Range("A3")
> > > > > MyList(3, 0) = .Range("A4")
> > > > > End With
> > > > > ComboBox2.List() = MyList
> > > > >
> > > > > Now i want to update or change values in excel sheet by typing the values in
> > > > > combo box. I tried to play with listindex, controlsource but could not make
> > > > > it.
> > > > >
> > > > > Anybody has an idea, please let me know.
> > > > > Thanks,
> > > > >
> > > > > Mazu
> > > >
> > > > --
> > > >
> > > > Dave Peterson
> > > >

> >
> > --
> >
> > Dave Peterson
> >


--

Dave Peterson
 
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
Userform combo box =?Utf-8?B?QW5keSB0aGUgeWV0aQ==?= Microsoft Excel Programming 22 6th Oct 2009 04:11 PM
~~ Help with Userform and Combo Box ~~ Corey Microsoft Excel Programming 10 29th Jun 2006 09:21 AM
Userform Combo box list PhilM Microsoft Excel Programming 0 14th Jun 2006 10:29 AM
UserForm and combo box to another sheet =?Utf-8?B?TmlnZWw=?= Microsoft Excel Misc 0 29th Apr 2005 09:41 AM
Combo Box & USerform hce Microsoft Excel Misc 1 31st Aug 2004 11:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:55 PM.