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: 2
Default Simple code makes Excel 2007 crash

Hello All,

I use this code to check if a value changes in a specific column and update
the adjacent cell (one to the right) with today's date.
However, it makes Excel 2007 crash.

Any advice?


Private Sub Worksheet_Change(ByVal Target As Range)
If ((ActiveCell.Column = 6) And (ActiveCell.Row 5)) Then
ActiveCell.Offset(0, 1).Value = Str(Date)
End If
End Sub

Thanks!
Mathieu

 
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
Application makes VBE crash. How do I troubleshoot? Bdra Excel Programming 4 January 10th 08 08:27 AM
this code makes excel crash zz Excel Programming 0 December 22nd 06 11:14 PM
XLA makes XL2003 crash Soren[_2_] Excel Programming 3 September 27th 05 01:40 PM
XLA makes XL2003 crash Soren[_2_] Excel Programming 0 September 26th 05 09:31 AM
HELP - simple VBA property causes Excel to crash No Name Excel Programming 0 October 23rd 03 08:38 PM


All times are GMT +1. The time now is 01:54 AM.

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

About Us

"It's about Microsoft Excel"