Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default line delete interception

Hi from Paris (France)

I want to save a specified data (cell in colonne A:A) of a line to be
deleted, before suppression.
How can intercept the line delete event ?


Thanks by anticipation,

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default line delete interception

Hi,

The row delete fires the 'Worksheet_Change' event ... but so do lots of
things.

Regards,

Chris.

--
Chris Marlow
MCSD.NET, Microsoft Office XP Master


" wrote:

Hi from Paris (France)

I want to save a specified data (cell in colonne A:A) of a line to be
deleted, before suppression.
How can intercept the line delete event ?


Thanks by anticipation,


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default line delete interception

Thanks Chris for the suggestion,
Is there any way to detect deleted line , previously its deletion ?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default line delete interception

Hi,

Unfortunately the Target range returned in Worksheet_Change refers to the
new row (i.e. the one that was below what you have deleted).

I looked at something like;

If Target.Rows.Count = 1 And Target.Columns.Count = 256 Then

Application.Undo

'Save the details down here

Application.Repeat

End If

But I don't think there is the sophistication in the worksheet events to
capture this. I've looked at Application.Undo ... but does not seem to meet
the need. I think you would need to set up your own 'delete row' macro & have
users use that macro.

Regards,

Chris.

--
Chris Marlow
MCSD.NET, Microsoft Office XP Master


" wrote:

Thanks Chris for the suggestion,
Is there any way to detect deleted line , previously its deletion ?


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default line delete interception

Unfortunately, there is no way to detect when a user deletes a
row.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


wrote in message
oups.com...
Hi from Paris (France)

I want to save a specified data (cell in colonne A:A) of a line
to be
deleted, before suppression.
How can intercept the line delete event ?


Thanks by anticipation,





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default line delete interception


Thanks for your help, Chris and Chip.

May be in the next Excel version ?

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
Challenge - Excel Line Feed Character CHR(10) - How to Delete and keep the text formatting without going ro single line in a cell ? No Name Excel Worksheet Functions 7 October 7th 09 11:10 AM
Delete all but first line Danu Excel Discussion (Misc queries) 3 October 18th 07 09:42 PM
Delete every other line Andy Excel Programming 2 November 15th 05 08:01 PM
Delete every other line Andy Excel Programming 0 November 15th 05 07:09 PM
how to delete to the end of line sersi Excel Programming 0 November 10th 04 10:02 PM


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