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: 493
Default Worksheet_Change problem

The below code runs fine if cell B5 has changed. However, if I replace B5 in
the code below with E5, the code runs even if Range("AA5").Value = "". It
only runs once though and at the end I get an error box, "application defined
or object define error?" I can replace the below code with any cell except
E5 and it works perfectly. I've tried changing the format of cell E5 and
various other things and I still can't get it to work. Any ideas?

On Error goto ErrHandler

If Target.Address = "$B$5" And Range("AA5").Value < "" Then
Application.EnableEvents = False
Call Input_FieldsNoPartNumber
End If

ErrHandler:
Application.EnableEvent = True

End Sub

 
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 with Worksheet_Change mike_e. New Users to Excel 7 July 13th 07 01:06 AM
Problem with function "Worksheet_Change" konpego Excel Worksheet Functions 0 June 23rd 05 05:46 AM
Worksheet_Change problem Romanian37[_3_] Excel Programming 4 July 28th 04 03:55 PM
Worksheet_Change problem Ben_2004 Excel Programming 1 April 28th 04 11:12 PM
Worksheet_Change problem RGA Excel Programming 6 January 14th 04 11:25 AM


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