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: 20
Default Worksheet_Change macro locks up Excel


I have a worksheet on which there are data validation lists in
B7,B11,B15, and B23. When the user selects "Report" in any of these, I
want the cell in column D on the same row to return "N/A". Below is my
code. The problem is, when it executes the program gets locked in
calculation mode. Any suggestions?

Private Sub Worksheet_Change(ByVal Target As Range)
If Range("B7").Value = "Report" Then
Range("D7").Value = "N/A"

End If

If Range("B11").Value = "Report" Then
Range("D11").Value = "N/A"

End If

If Range("B15").Value = "Report" Then
Range("D15").Value = "N/A"

End If

If Range("B23").Value = "Report" Then
Range("D23").Value = "N/A"

End If




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
Trigger Macro by Worksheet_Change JSnow Excel Discussion (Misc queries) 5 October 2nd 08 06:27 PM
Excel 2003 has wrong timing using the worksheet_change macro Jan Excel Worksheet Functions 0 January 14th 06 06:30 AM
calc locks up after running a macro that moves sheets to a new fil shibao Excel Discussion (Misc queries) 0 November 7th 05 10:58 PM
Macro locks me in a single XLS file Luca T. Excel Programming 5 September 13th 04 01:58 AM
Using Worksheet_Change to Auto Run a Macro Katrina Excel Programming 2 September 25th 03 01:57 PM


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