Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
konpego
 
Posts: n/a
Default Problem with function "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 the cell selection
is 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

Reply
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
Problem adding a range using Sumif function. vrk1 Excel Worksheet Functions 2 June 22nd 05 06:05 PM
CONVERT Function Disappered in Excel Gord Dibben Excel Discussion (Misc queries) 3 April 13th 05 07:59 PM
Networkdays problem JamesDMartin Excel Worksheet Functions 3 March 31st 05 11:26 PM
Need a ISWorkday Function -- Any Ideas Mark Excel Worksheet Functions 5 March 29th 05 01:58 AM
Trim function doesn't clean out ASCII Code 160 (Space) Ronald Dodge Excel Worksheet Functions 6 January 27th 05 03:48 AM


All times are GMT +1. The time now is 08:42 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"