PC Review


Reply
Thread Tools Rate Thread

edit combo boxes

 
 
=?Utf-8?B?Q2hyaXN0aW5l?=
Guest
Posts: n/a
 
      21st Jul 2007
Hello. I've inherited these timesheets that have combo-boxes in them for
drop-down menus (to categorize expenses). I need to update the lists in the
combo boxes, and I'm not sure how to do this-- I'm not familiar with visual
basic.

This is what I see when I open the code in Visual Basic.

Private Sub ComboBox1_Change()

End Sub

Private Sub ComboBox1_MouseDown(ByVal Button As Integer, ByVal Shift As
Integer, ByVal X As Single, ByVal Y As Single)

End Sub

Private Sub ComboBox20_Change()

End Sub

Private Sub ComboBox7_Change()

End Sub

Not sure how to find the text to change. Thanks for any help!
Christine
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      21st Jul 2007
There's nothing in those procedures. They're just stubs waiting for code to be
added.

If these are comboboxes from the control toolbox toolbar that are placed on a
worksheet, then show that control toolbox toolbar.

Select one of the comboboxes.
rightclick on it and choose properties
look for listfillrange

This may be the thing you need to adjust. Actually, that would point to a range
on some worksheet where you'd add/delete/modify the values. Then you adjust
that .listfillrange property to point at the adjusted range.

Christine wrote:
>
> Hello. I've inherited these timesheets that have combo-boxes in them for
> drop-down menus (to categorize expenses). I need to update the lists in the
> combo boxes, and I'm not sure how to do this-- I'm not familiar with visual
> basic.
>
> This is what I see when I open the code in Visual Basic.
>
> Private Sub ComboBox1_Change()
>
> End Sub
>
> Private Sub ComboBox1_MouseDown(ByVal Button As Integer, ByVal Shift As
> Integer, ByVal X As Single, ByVal Y As Single)
>
> End Sub
>
> Private Sub ComboBox20_Change()
>
> End Sub
>
> Private Sub ComboBox7_Change()
>
> End Sub
>
> Not sure how to find the text to change. Thanks for any help!
> Christine


--

Dave Peterson
 
Reply With Quote
 
=?Utf-8?B?Q2hyaXN0aW5l?=
Guest
Posts: n/a
 
      23rd Jul 2007
That worked-- thank you!!

"Dave Peterson" wrote:

> There's nothing in those procedures. They're just stubs waiting for code to be
> added.
>
> If these are comboboxes from the control toolbox toolbar that are placed on a
> worksheet, then show that control toolbox toolbar.
>
> Select one of the comboboxes.
> rightclick on it and choose properties
> look for listfillrange
>
> This may be the thing you need to adjust. Actually, that would point to a range
> on some worksheet where you'd add/delete/modify the values. Then you adjust
> that .listfillrange property to point at the adjusted range.
>
> Christine wrote:
> >
> > Hello. I've inherited these timesheets that have combo-boxes in them for
> > drop-down menus (to categorize expenses). I need to update the lists in the
> > combo boxes, and I'm not sure how to do this-- I'm not familiar with visual
> > basic.
> >
> > This is what I see when I open the code in Visual Basic.
> >
> > Private Sub ComboBox1_Change()
> >
> > End Sub
> >
> > Private Sub ComboBox1_MouseDown(ByVal Button As Integer, ByVal Shift As
> > Integer, ByVal X As Single, ByVal Y As Single)
> >
> > End Sub
> >
> > Private Sub ComboBox20_Change()
> >
> > End Sub
> >
> > Private Sub ComboBox7_Change()
> >
> > End Sub
> >
> > Not sure how to find the text to change. Thanks for any help!
> > Christine

>
> --
>
> 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
Cannot add or edit to my form, nor select from the combo boxes on myform zufie Microsoft Access Queries 2 21st Aug 2009 09:29 PM
Getting Combo boxes to change options based on other Combo boxes. Ancient Wolf Microsoft Excel New Users 1 27th Mar 2009 06:29 PM
Parameter queries using forms with combo boxes, with select all, and defaulting combo boxes to blank fields nmoakeh@byte-x-byte.com Microsoft Access 12 15th Oct 2006 07:35 PM
Populate combo boxes from results of other combo boxes matt.pimm@gmail.com Microsoft Access Forms 1 13th Jan 2006 02:47 PM
Make combo boxes change contents depending on other combo boxes =?Utf-8?B?R2x5bm4=?= Microsoft Access Forms 1 9th Dec 2005 01:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:30 PM.