ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   After Insert (https://www.excelbanter.com/excel-programming/416725-after-insert.html)

steven

After Insert
 
Is there a way to tell when a line insert occured. I do not see an
AfterInsert routine.

Thank you,

Steven.

Barb Reinhardt

After Insert
 
You could probably find it with a worksheet_change event and look for

Target.Columns.Count = ME.Columns.Count

--
HTH,
Barb Reinhardt




"Steven" wrote:

Is there a way to tell when a line insert occured. I do not see an
AfterInsert routine.

Thank you,

Steven.


Matthew Norman

After Insert
 
I used the following within the Worksheet_Change event

If Target.Address = Target.EntireRow.Address then

'Row has been inserted or deleted


End if

steven

After Insert
 
Those are nice. Thank you. What I want to do is specifically catch the
insert. Is there a way do that?

Thanks again.

"Matthew Norman" wrote:

I used the following within the Worksheet_Change event

If Target.Address = Target.EntireRow.Address then

'Row has been inserted or deleted


End if



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com