LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 411
Default Combobox-calculating issue

Hi,

We've been using this since August 2007. This just started happening
about two weeks ago:

In Excel 2000, the application freezes when the user types in the
combobox to select an entry. The worksheet starts calculating and
won't stop.

If the user scrolls to the selection and presses enter the application
does not freeze.

I'm using the following code in the KeyDown event:

Private Sub cboPartnum_KeyDown(ByVal KeyCode As MSForms.ReturnInteger,
ByVal Shift As Integer)

Select Case KeyCode
Case 9 'Tab
Worksheets("QuotedPart").Range("d2").Activate
Case 13 'Enter
Worksheets("QuotedPart").Range("d2").Activate
Case Else
'do nothing
End Select
End Sub


Also, I'm populating the combobox from a named range--PARTNUM, that is
growing daily. It has 1396 rows of data and we add about 27 items per
week.

I can stop this locking up behavior if I select manual calculation,
but then the user has to remember to calculate manually.

It seems I should turn off automatic calculation when the user makes a
selection in the combobox and then turn it back on when they move on
to the next cell.

Has anyone experienced this before?

I tried adding the calculate command to my code but it fails with the
message, Compile Error, Expected Function or variable.


Private Sub cboPartnum_KeyDown(ByVal KeyCode As MSForms.ReturnInteger,
ByVal Shift As Integer)


Fails here-- Application.Calculate = False

Select Case KeyCode
Case 9 'Tab
Worksheets("QuotedPart").Range("d2").Activate
Case 13 'Enter
Worksheets("QuotedPart").Range("d2").Activate
Case Else
'do nothing
End Select
Application.Calculate = True
End Sub


I appreciate your suggestions.

Thanks,

Dan
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
ComboBox Issue Duncs Excel Programming 0 July 26th 06 04:16 PM
Combobox issue! EagleWolf Excel Programming 2 November 12th 05 01:22 PM
Combobox Issue Andy Excel Programming 2 July 27th 05 04:27 PM
Another ComboBox Issue Darrin Henry[_2_] Excel Programming 2 April 16th 05 03:03 PM
Another ComboBox Issue Darrin Henry[_2_] Excel Programming 1 April 16th 05 09:18 AM


All times are GMT +1. The time now is 03:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"