Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Recording a range of changed cells.

I have some sheets that I need to note if any of the columns within a given
row has been changed. To clarify columns A1:Q1 have data which can be
changed, I'd like to have cell Srow# set to True if anyone of the items in
column A-Q have been changed.

I added this code below:

Private Sub Worksheet_Change(ByVal Target As Range)

Dim iRow As Integer

iRow = Target.Row
Cells(iRow, 19).Value = True

End Sub

This works great, execpt for one thing, I can never delete the True value
cause this code intercepts that as a change. Is there a way to monitor only
columns A-Q?

Hope this makes sense.

TIA

Larry
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Recording a range of changed cells.

if not intersect(target,range("A:Q")) is nothing then

Perform what you want

ENd if

"Larry Cooke" wrote:

I have some sheets that I need to note if any of the columns within a given
row has been changed. To clarify columns A1:Q1 have data which can be
changed, I'd like to have cell Srow# set to True if anyone of the items in
column A-Q have been changed.

I added this code below:

Private Sub Worksheet_Change(ByVal Target As Range)

Dim iRow As Integer

iRow = Target.Row
Cells(iRow, 19).Value = True

End Sub

This works great, execpt for one thing, I can never delete the True value
cause this code intercepts that as a change. Is there a way to monitor only
columns A-Q?

Hope this makes sense.

TIA

Larry

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Recording a range of changed cells.

Thank you very much Barb, it's working like a charm now.

Larry

"Barb Reinhardt" wrote:

if not intersect(target,range("A:Q")) is nothing then

Perform what you want

ENd if

"Larry Cooke" wrote:

I have some sheets that I need to note if any of the columns within a given
row has been changed. To clarify columns A1:Q1 have data which can be
changed, I'd like to have cell Srow# set to True if anyone of the items in
column A-Q have been changed.

I added this code below:

Private Sub Worksheet_Change(ByVal Target As Range)

Dim iRow As Integer

iRow = Target.Row
Cells(iRow, 19).Value = True

End Sub

This works great, execpt for one thing, I can never delete the True value
cause this code intercepts that as a change. Is there a way to monitor only
columns A-Q?

Hope this makes sense.

TIA

Larry

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
Recording changed cells in the same sheet unlucky Excel Discussion (Misc queries) 2 June 12th 07 09:53 PM
How do I make the Stop Recording bar pop up when recording macros J Excel Worksheet Functions 1 January 10th 06 08:46 PM
Retrieve individual cells from a range changed between a range baldomero[_4_] Excel Programming 3 September 5th 05 07:31 PM
How do I have a macro format cells while recording? TD Excel Worksheet Functions 1 May 12th 05 04:32 PM
Trace all the changed cells range... Sridhar Pentlavalli via OfficeKB.com Excel Programming 6 January 18th 05 02:41 PM


All times are GMT +1. The time now is 02:11 PM.

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"