Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default Detect Delete Column/Row vs Insert

Excel 2002, WinXP
I am helping an OP and I have run into something that I need some help with.
His file has some key words located here and there that some code I wrote is
using to locate things. No problem with that.
His problem is that his user might delete a column/row that contains one or
more of these key words, and thereby mess up the operation of the code. His
user is permitted to delete/insert columns and rows and does so.
So I wrote him some code based on a Worksheet_Change macro and Undo and
check for those words, etc. That works fine.
But I didn't consider that this code will fire when the user INSERTS a
column/row as well. That results in bad things happening.
My question: Is there any way to detect that the change (Worksheet_Change)
was an insertion rather than a deletion of a column/row?
Thanks for your help. Otto


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
Deactivating Insert/Delete Row/Column [email protected] Excel Programming 1 September 22nd 04 08:33 PM
Deactivating Insert /Delete Row/Column [email protected] Excel Programming 0 September 22nd 04 04:16 AM
Row/Column Insert/Delete Von Shean Excel Programming 1 January 21st 04 10:09 AM
How to detect an insert/delete? Dave Peterson[_3_] Excel Programming 0 September 12th 03 03:38 AM
How to detect an entire column/row delete event? MV[_2_] Excel Programming 1 September 10th 03 01:03 PM


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