PC Review


Reply
Thread Tools Rate Thread

Combo box selection will not calculate

 
 
Perrysbox2
Guest
Posts: n/a
 
      11th Jun 2009
I am using 3 combo boxes to select the year, month and day for a scheduling
worksheet. Each combo box is linked to a cell which is 'named' accordingly.
When I select the year and day, the calculations in the worksheet work. But
when I select the month, the calculations will not work.
If I enter the month number into the linked cell using the keyboard and
press 'enter', the worksheet calculates perfectly. Only when the month
number is entered into the linked cell by selecting in with the combo box, it
does not work.
SOMEBODY PLEASE HELP!
 
Reply With Quote
 
 
 
 
Perrysbox2
Guest
Posts: n/a
 
      11th Jun 2009
Yes. They are copies of each other, with only the list range and links changed.

Tell me more about the code you mentioned

Thanks for the prompt response.

"Patrick Molloy" wrote:

> > SOMEBODY PLEASE HELP! not likely to spur any faster or better response.

>
> Have you double checked that the three comboboxes are formatted the same
> way?
> you could create code and assign to all three buttons that simply forces the
> sheet or the range to calculate
>
> "Perrysbox2" <(E-Mail Removed)> wrote in message
> news:74A4B263-43CD-4E9D-AC75-(E-Mail Removed)...
> > I am using 3 combo boxes to select the year, month and day for a
> > scheduling
> > worksheet. Each combo box is linked to a cell which is 'named'
> > accordingly.
> > When I select the year and day, the calculations in the worksheet work.
> > But
> > when I select the month, the calculations will not work.
> > If I enter the month number into the linked cell using the keyboard and
> > press 'enter', the worksheet calculates perfectly. Only when the month
> > number is entered into the linked cell by selecting in with the combo box,
> > it
> > does not work.
> > SOMEBODY PLEASE HELP!

>
>

 
Reply With Quote
 
Perrysbox2
Guest
Posts: n/a
 
      11th Jun 2009
Thanks for your prompt rasponse Patrick.
Yes; they are exact copies of each other, with only the list ranges and
linked cells changed.
Tell me more about that code you mentioned.

"Patrick Molloy" wrote:

> > SOMEBODY PLEASE HELP! not likely to spur any faster or better response.

>
> Have you double checked that the three comboboxes are formatted the same
> way?
> you could create code and assign to all three buttons that simply forces the
> sheet or the range to calculate
>
> "Perrysbox2" <(E-Mail Removed)> wrote in message
> news:74A4B263-43CD-4E9D-AC75-(E-Mail Removed)...
> > I am using 3 combo boxes to select the year, month and day for a
> > scheduling
> > worksheet. Each combo box is linked to a cell which is 'named'
> > accordingly.
> > When I select the year and day, the calculations in the worksheet work.
> > But
> > when I select the month, the calculations will not work.
> > If I enter the month number into the linked cell using the keyboard and
> > press 'enter', the worksheet calculates perfectly. Only when the month
> > number is entered into the linked cell by selecting in with the combo box,
> > it
> > does not work.
> > SOMEBODY PLEASE HELP!

>
>

 
Reply With Quote
 
Perrysbox2
Guest
Posts: n/a
 
      11th Jun 2009
BTW: If I use a 'spinner' or a 'list box' it works fine. It only seems to be
the 'combo box' that is giving me trouble, and that is what would suit the
project best.

"Patrick Molloy" wrote:

> > SOMEBODY PLEASE HELP! not likely to spur any faster or better response.

>
> Have you double checked that the three comboboxes are formatted the same
> way?
> you could create code and assign to all three buttons that simply forces the
> sheet or the range to calculate
>
> "Perrysbox2" <(E-Mail Removed)> wrote in message
> news:74A4B263-43CD-4E9D-AC75-(E-Mail Removed)...
> > I am using 3 combo boxes to select the year, month and day for a
> > scheduling
> > worksheet. Each combo box is linked to a cell which is 'named'
> > accordingly.
> > When I select the year and day, the calculations in the worksheet work.
> > But
> > when I select the month, the calculations will not work.
> > If I enter the month number into the linked cell using the keyboard and
> > press 'enter', the worksheet calculates perfectly. Only when the month
> > number is entered into the linked cell by selecting in with the combo box,
> > it
> > does not work.
> > SOMEBODY PLEASE HELP!

>
>

 
Reply With Quote
 
Patrick Molloy
Guest
Posts: n/a
 
      11th Jun 2009
have some simple code,

Sub Recalculate()
Range("D3").Calculate
Sheet1.Calculate
End Sub

and have all comboboxes run it on by click events
in the sheet, in my example, D3 would have the formula that depends on the
cells uodated by the cbs



"Perrysbox2" <(E-Mail Removed)> wrote in message
news:C3A91F2C-66FB-4C21-A3F8-(E-Mail Removed)...
> Thanks for your prompt rasponse Patrick.
> Yes; they are exact copies of each other, with only the list ranges and
> linked cells changed.
> Tell me more about that code you mentioned.
>
> "Patrick Molloy" wrote:
>
>> > SOMEBODY PLEASE HELP! not likely to spur any faster or better
>> > response.

>>
>> Have you double checked that the three comboboxes are formatted the same
>> way?
>> you could create code and assign to all three buttons that simply forces
>> the
>> sheet or the range to calculate
>>
>> "Perrysbox2" <(E-Mail Removed)> wrote in message
>> news:74A4B263-43CD-4E9D-AC75-(E-Mail Removed)...
>> > I am using 3 combo boxes to select the year, month and day for a
>> > scheduling
>> > worksheet. Each combo box is linked to a cell which is 'named'
>> > accordingly.
>> > When I select the year and day, the calculations in the worksheet work.
>> > But
>> > when I select the month, the calculations will not work.
>> > If I enter the month number into the linked cell using the keyboard and
>> > press 'enter', the worksheet calculates perfectly. Only when the month
>> > number is entered into the linked cell by selecting in with the combo
>> > box,
>> > it
>> > does not work.
>> > SOMEBODY PLEASE HELP!

>>
>>

 
Reply With Quote
 
Perrysbox2
Guest
Posts: n/a
 
      11th Jun 2009
No luck. 'C4' is the linked-to cell that is 'named' as 'month', and is the
cell that will work if I enter the month number with the keyboard.
I am not very knowledeable about VB code, so bear with me. This is what I
entered:

Private Sub ComboBox1_Click()
Sub Recalculate()
Range(C4).Calculate
Sheet1.Calculate
End Sub

Any suggestions?
I appreciate your help.

"Patrick Molloy" wrote:

> have some simple code,
>
> Sub Recalculate()
> Range("D3").Calculate
> Sheet1.Calculate
> End Sub
>
> and have all comboboxes run it on by click events
> in the sheet, in my example, D3 would have the formula that depends on the
> cells uodated by the cbs
>
>
>
> "Perrysbox2" <(E-Mail Removed)> wrote in message
> news:C3A91F2C-66FB-4C21-A3F8-(E-Mail Removed)...
> > Thanks for your prompt rasponse Patrick.
> > Yes; they are exact copies of each other, with only the list ranges and
> > linked cells changed.
> > Tell me more about that code you mentioned.
> >
> > "Patrick Molloy" wrote:
> >
> >> > SOMEBODY PLEASE HELP! not likely to spur any faster or better
> >> > response.
> >>
> >> Have you double checked that the three comboboxes are formatted the same
> >> way?
> >> you could create code and assign to all three buttons that simply forces
> >> the
> >> sheet or the range to calculate
> >>
> >> "Perrysbox2" <(E-Mail Removed)> wrote in message
> >> news:74A4B263-43CD-4E9D-AC75-(E-Mail Removed)...
> >> > I am using 3 combo boxes to select the year, month and day for a
> >> > scheduling
> >> > worksheet. Each combo box is linked to a cell which is 'named'
> >> > accordingly.
> >> > When I select the year and day, the calculations in the worksheet work.
> >> > But
> >> > when I select the month, the calculations will not work.
> >> > If I enter the month number into the linked cell using the keyboard and
> >> > press 'enter', the worksheet calculates perfectly. Only when the month
> >> > number is entered into the linked cell by selecting in with the combo
> >> > box,
> >> > it
> >> > does not work.
> >> > SOMEBODY PLEASE HELP!
> >>
> >>

>

 
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
Combo box selection will not calculate Perrysbox2 Microsoft Excel Worksheet Functions 1 11th Jun 2009 09:21 PM
Re: Combo box selection will not calculate Patrick Molloy Microsoft Excel Programming 0 11th Jun 2009 07:15 PM
Combo box selection will not calculate Perrysbox2 Microsoft Excel Misc 0 11th Jun 2009 07:12 PM
Combo Box selection only shows bound column info after selection made. Coby Microsoft Excel Programming 1 18th Oct 2007 02:04 AM
Combo Box selection disappearing on new record and change of option selection EmmA Microsoft Access Forms 2 17th Jun 2004 02:21 AM


Features
 

Advertising
 

Newsgroups
 


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