LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
konpego
 
Posts: n/a
Default Problems with "Worksheet_Change"

Hello,

I have noticed some problems with the function "Worksheet_Change" between
different MS Excel versions.

Personally, I have the version: MS Excel 2000 (9.0.6926 SP-3)
and in this version there is NO problem.
A customer, though, works with the two versions:

MS Excel 2002 SP-1 and MS Excel 2003 SP-1

and he has noticed that when he selects a cell and changes it, the focus
(the frame is marked) wil not be moved to the next cell after the change
(and ENTER).
It is strange but it works perfectly fine in the older version.

Has anyone else experienced the same thing?
Solutions? Tips or tricks?

Below my Change function is listed. The problem occurs when a cell
is selected within the defined NAME-area "Product_Area".

Ideas anyone?

Thanks (in advance)!

/konpego

===========================================
Private Sub Worksheet_Change(ByVal Target As Range)
Dim sTargetArea As String
Dim rTarget As Range
Dim nRow As Long

On Error GoTo ERR_PROC
' ---------------- Check if change of Product list data ----------------
sTargetArea = Mid(Application.Names("Product_Area").Value, 2)
Set rTarget = Application.Intersect(Target, Range(sTargetArea))
If Not rTarget Is Nothing Then
Application.Cursor = xlWait
FormatWs_SalesSCoSaL
GoTo EXIT_PROC
End If
' -------------------- Check if change of TW data ---------------------
nRow = Target.Row
If IsEmpty(ActiveSheet.Cells(nRow, 3)) Then
Exit Sub ' no product assigned (n C
column)
End If

sTargetArea = Mid(Application.Names("Project_TW_Area").Value, 2)
Set rTarget = Application.Intersect(Target, Range(sTargetArea))
If Not rTarget Is Nothing Then
cmdUpdateProjectTimeWindow.Enabled = True
GoTo EXIT_PROC
End If


 
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
Problems with Excel 2003 after downloading Office SP1 Kristy Excel Discussion (Misc queries) 0 February 22nd 05 06:13 PM
problems with Sharing excel files mmayfield Excel Discussion (Misc queries) 0 January 22nd 05 08:45 PM
"Problems during load" Vincent Excel Discussion (Misc queries) 1 January 19th 05 08:38 PM
I am having problems creating pivot table of data wyman Charts and Charting in Excel 1 January 12th 05 05:17 PM
Problems opening Excel files using DFS links Byron Excel Discussion (Misc queries) 2 January 1st 05 11:31 PM


All times are GMT +1. The time now is 06:03 AM.

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"