PC Review


Reply
Thread Tools Rate Thread

Combo Boxes linked to Cells will not clear.

 
 
=?Utf-8?B?Q2xpbnRH?=
Guest
Posts: n/a
 
      30th May 2007
Hi, I've inherited a workbook which performs multiple functions and has input
cells and combo boxes on the first sheet (the first sheet serves as an input
page). Information is entered on this input form into cells and combo boxes,
then a button is clicked to enter the info and the macro also clears out the
input cells / boxes. This used to work fine, but something has evidently
happened and now only the cells clear out. The combo boxes stay populated.
I don't see anything in the code that has changed. Any ideas or suggestions?
Thanks!!
 
Reply With Quote
 
 
 
 
Norman Jones
Guest
Posts: n/a
 
      30th May 2007
Hi Clint,

Perhaps you could post the relavant button code.



---
Regards,
Norman



"ClintG" <(E-Mail Removed)> wrote in message
news:A3F9F7A9-7C70-48A7-AC33-(E-Mail Removed)...
> Hi, I've inherited a workbook which performs multiple functions and has
> input
> cells and combo boxes on the first sheet (the first sheet serves as an
> input
> page). Information is entered on this input form into cells and combo
> boxes,
> then a button is clicked to enter the info and the macro also clears out
> the
> input cells / boxes. This used to work fine, but something has evidently
> happened and now only the cells clear out. The combo boxes stay
> populated.
> I don't see anything in the code that has changed. Any ideas or
> suggestions?
> Thanks!!



 
Reply With Quote
 
=?Utf-8?B?S2liYQ==?=
Guest
Posts: n/a
 
      30th May 2007
Can you post your code?

"ClintG" wrote:

> Hi, I've inherited a workbook which performs multiple functions and has input
> cells and combo boxes on the first sheet (the first sheet serves as an input
> page). Information is entered on this input form into cells and combo boxes,
> then a button is clicked to enter the info and the macro also clears out the
> input cells / boxes. This used to work fine, but something has evidently
> happened and now only the cells clear out. The combo boxes stay populated.
> I don't see anything in the code that has changed. Any ideas or suggestions?
> Thanks!!

 
Reply With Quote
 
=?Utf-8?B?Q2xpbnRH?=
Guest
Posts: n/a
 
      30th May 2007
Oops..sorry. Below is the code, it's pretty basic. "Interface" is the first
sheet which serves as an input form. Cell E4 is linked to ComboBox3, Cell E5
is simply an input cell, and Cell E8 is linked to ComboBox5. The ComboBoxes
are placed directly over the corresponding cells, and the code is all written
using references to the cells. When you populate the combo boxes, the cells
do update (I moved one over to make sure). Everything in the workbook
functions (populating the other sheets, calculations, etc...) What is wrong
is the code clears out the cell behind the combo box, but does not update the
combo box. Is there a setting under "properties" that would fix this? Any
ideas would be great!! Thanks!!

Worksheets("INTERFACE").Cells(4, 5).ClearContents
Worksheets("INTERFACE").Cells(5, 5).ClearContents
Worksheets("INTERFACE").Cells(8, 5).ClearContents

"Norman Jones" wrote:

> Hi Clint,
>
> Perhaps you could post the relavant button code.
>
>
>
> ---
> Regards,
> Norman
>
>
>
> "ClintG" <(E-Mail Removed)> wrote in message
> news:A3F9F7A9-7C70-48A7-AC33-(E-Mail Removed)...
> > Hi, I've inherited a workbook which performs multiple functions and has
> > input
> > cells and combo boxes on the first sheet (the first sheet serves as an
> > input
> > page). Information is entered on this input form into cells and combo
> > boxes,
> > then a button is clicked to enter the info and the macro also clears out
> > the
> > input cells / boxes. This used to work fine, but something has evidently
> > happened and now only the cells clear out. The combo boxes stay
> > populated.
> > I don't see anything in the code that has changed. Any ideas or
> > suggestions?
> > Thanks!!

>
>
>

 
Reply With Quote
 
=?Utf-8?B?Q2xpbnRH?=
Guest
Posts: n/a
 
      30th May 2007
Oops..sorry. Below is the code, it's pretty basic. "Interface" is the first
sheet which serves as an input form. Cell E4 is linked to ComboBox3, Cell E5
is simply an input cell, and Cell E8 is linked to ComboBox5. The ComboBoxes
are placed directly over the corresponding cells, and the code is all written
using references to the cells. When you populate the combo boxes, the cells
do update (I moved one over to make sure). Everything in the workbook
functions (populating the other sheets, calculations, etc...) What is wrong
is the code clears out the cell behind the combo box, but does not update the
combo box. Is there a setting under "properties" that would fix this? Any
ideas would be great!! Thanks!!

"Kiba" wrote:

> Can you post your code?
>
> "ClintG" wrote:
>
> > Hi, I've inherited a workbook which performs multiple functions and has input
> > cells and combo boxes on the first sheet (the first sheet serves as an input
> > page). Information is entered on this input form into cells and combo boxes,
> > then a button is clicked to enter the info and the macro also clears out the
> > input cells / boxes. This used to work fine, but something has evidently
> > happened and now only the cells clear out. The combo boxes stay populated.
> > I don't see anything in the code that has changed. Any ideas or suggestions?
> > Thanks!!

 
Reply With Quote
 
Norman Jones
Guest
Posts: n/a
 
      30th May 2007
Hi Clint,

Your code works for me, although it may be simplified:

'=============>>
Public Sub Tester()
Worksheets("INTERFACE").Range("E4:E5,E8").ClearContents
End Sub
'<<=============

Are you sure that there is no code behind the ComboBoxes
in the sheet Interface's module?


---
Regards,
Norman


"ClintG" <(E-Mail Removed)> wrote in message
news:6D96383C-922C-4D1F-BA44-(E-Mail Removed)...
> Oops..sorry. Below is the code, it's pretty basic. "Interface" is the
> first
> sheet which serves as an input form. Cell E4 is linked to ComboBox3, Cell
> E5
> is simply an input cell, and Cell E8 is linked to ComboBox5. The
> ComboBoxes
> are placed directly over the corresponding cells, and the code is all
> written
> using references to the cells. When you populate the combo boxes, the
> cells
> do update (I moved one over to make sure). Everything in the workbook
> functions (populating the other sheets, calculations, etc...) What is
> wrong
> is the code clears out the cell behind the combo box, but does not update
> the
> combo box. Is there a setting under "properties" that would fix this?
> Any
> ideas would be great!! Thanks!!
>
> Worksheets("INTERFACE").Cells(4, 5).ClearContents
> Worksheets("INTERFACE").Cells(5, 5).ClearContents
> Worksheets("INTERFACE").Cells(8, 5).ClearContents
>
> "Norman Jones" wrote:
>
>> Hi Clint,
>>
>> Perhaps you could post the relavant button code.
>>
>>
>>
>> ---
>> Regards,
>> Norman
>>
>>
>>
>> "ClintG" <(E-Mail Removed)> wrote in message
>> news:A3F9F7A9-7C70-48A7-AC33-(E-Mail Removed)...
>> > Hi, I've inherited a workbook which performs multiple functions and has
>> > input
>> > cells and combo boxes on the first sheet (the first sheet serves as an
>> > input
>> > page). Information is entered on this input form into cells and combo
>> > boxes,
>> > then a button is clicked to enter the info and the macro also clears
>> > out
>> > the
>> > input cells / boxes. This used to work fine, but something has
>> > evidently
>> > happened and now only the cells clear out. The combo boxes stay
>> > populated.
>> > I don't see anything in the code that has changed. Any ideas or
>> > suggestions?
>> > Thanks!!

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?Q2xpbnRH?=
Guest
Posts: n/a
 
      31st May 2007
Thanks for taking a look Norman. The problem was - under Tools, Options,
Calculation, it was set on Manual, not Automatic. I figured out that if I
saved the worksheet after making an entry, the combo boxes cleared out. Once
I changed this to Automatic, it cleared out after each entry automatically.
Now I know for next time! Thanks again for your help.

"Norman Jones" wrote:

> Hi Clint,
>
> Your code works for me, although it may be simplified:
>
> '=============>>
> Public Sub Tester()
> Worksheets("INTERFACE").Range("E4:E5,E8").ClearContents
> End Sub
> '<<=============
>
> Are you sure that there is no code behind the ComboBoxes
> in the sheet Interface's module?
>
>
> ---
> Regards,
> Norman
>
>
> "ClintG" <(E-Mail Removed)> wrote in message
> news:6D96383C-922C-4D1F-BA44-(E-Mail Removed)...
> > Oops..sorry. Below is the code, it's pretty basic. "Interface" is the
> > first
> > sheet which serves as an input form. Cell E4 is linked to ComboBox3, Cell
> > E5
> > is simply an input cell, and Cell E8 is linked to ComboBox5. The
> > ComboBoxes
> > are placed directly over the corresponding cells, and the code is all
> > written
> > using references to the cells. When you populate the combo boxes, the
> > cells
> > do update (I moved one over to make sure). Everything in the workbook
> > functions (populating the other sheets, calculations, etc...) What is
> > wrong
> > is the code clears out the cell behind the combo box, but does not update
> > the
> > combo box. Is there a setting under "properties" that would fix this?
> > Any
> > ideas would be great!! Thanks!!
> >
> > Worksheets("INTERFACE").Cells(4, 5).ClearContents
> > Worksheets("INTERFACE").Cells(5, 5).ClearContents
> > Worksheets("INTERFACE").Cells(8, 5).ClearContents
> >
> > "Norman Jones" wrote:
> >
> >> Hi Clint,
> >>
> >> Perhaps you could post the relavant button code.
> >>
> >>
> >>
> >> ---
> >> Regards,
> >> Norman
> >>
> >>
> >>
> >> "ClintG" <(E-Mail Removed)> wrote in message
> >> news:A3F9F7A9-7C70-48A7-AC33-(E-Mail Removed)...
> >> > Hi, I've inherited a workbook which performs multiple functions and has
> >> > input
> >> > cells and combo boxes on the first sheet (the first sheet serves as an
> >> > input
> >> > page). Information is entered on this input form into cells and combo
> >> > boxes,
> >> > then a button is clicked to enter the info and the macro also clears
> >> > out
> >> > the
> >> > input cells / boxes. This used to work fine, but something has
> >> > evidently
> >> > happened and now only the cells clear out. The combo boxes stay
> >> > populated.
> >> > I don't see anything in the code that has changed. Any ideas or
> >> > suggestions?
> >> > Thanks!!
> >>
> >>
> >>

>
>
>

 
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
Clear unactive combo boxes cfatz1@gmail.com Microsoft Excel Programming 2 23rd Sep 2005 08:09 PM
Clear data in text boxes / combo boxes =?Utf-8?B?Q2hyaXM=?= Microsoft Access 4 31st May 2005 08:07 AM
Clear Combo Boxes =?Utf-8?B?TWF0dA==?= Microsoft Access 2 7th Oct 2004 03:05 PM
=> Clear Text boxes on Master Form and linked SubForm Rhonda Fischer Microsoft Access VBA Modules 0 3rd Jul 2003 05:27 PM
=> Clear Text boxes on Master Form and linked SubForm Rhonda Fischer Microsoft Access VBA Modules 0 3rd Jul 2003 05:18 PM


Features
 

Advertising
 

Newsgroups
 


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