Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Determine if Row/Column was Added/Deleted

It would help to see the code you have.

"Paige" wrote:

I have code that activates whenever a row/column has been added/deleted, and
records the affected row #/column # on a 'change history' tab. How do I
adjust the code tho so that it will record an add versus a delete. For
example, if it records that $N:$N was added, can I have it put a 'D' after
that ($N:$N D) so that I know the column was deleted (versus added), or an
'A' if added? Have tried messing around with used range count, but so far
haven't been able to come up with anything. Any help would be appreciated.
Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default Determine if Row/Column was Added/Deleted

Hi, JLGWhiz; thanks for responding. Here is the code:

If Target.Address = Target.EntireRow.Address Or Target.Address =
Target.EntireColumn.Address Then
Worksheets("History").Range("A65536").End(xlUp).Of fset(0, 1).Select
If Target.Address = Target.EntireRow.Address Then
ActiveCell.Value = Target.EntireRow.Address
End If
If Target.Address = Target.EntireColumn.Address Then
ActiveCell.Value = Target.EntireColumn.Address
End If
End If


"JLGWhiz" wrote:

It would help to see the code you have.

"Paige" wrote:

I have code that activates whenever a row/column has been added/deleted, and
records the affected row #/column # on a 'change history' tab. How do I
adjust the code tho so that it will record an add versus a delete. For
example, if it records that $N:$N was added, can I have it put a 'D' after
that ($N:$N D) so that I know the column was deleted (versus added), or an
'A' if added? Have tried messing around with used range count, but so far
haven't been able to come up with anything. Any help would be appreciated.
Thanks!

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
Keep a column of comments "with" pivot table as pivot tables datachanges, causing rows to be added and deleted. Tim Richardson Excel Discussion (Misc queries) 0 August 31st 09 02:53 AM
compare sheets for added or deleted rows helpwithXL Excel Programming 0 May 10th 05 06:02 PM
compare and find added or deleted rows helpwithXL Excel Programming 0 May 10th 05 12:08 PM
how to detect added or deleted rows in compare helpwithXL Excel Programming 1 April 29th 05 01:48 PM
How do I keep a formula from changing if a row is added or deleted cwolt Excel Discussion (Misc queries) 1 December 27th 04 11:18 PM


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