Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Capturing deletion of a row

How can I tell if a user has deleted a row?

I need to recal certain cells but only if the user has deleted one or more
rows. I have a macro in the SheetChange event that executes every time
there is a change to a worksheet. I need it to execute onloy if the user
has deleted a row.

Glen


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Capturing deletion of a row

Unfortunately, there is no such event.


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


"Glen Mettler" wrote in message
...
How can I tell if a user has deleted a row?

I need to recal certain cells but only if the user has deleted
one or more rows. I have a macro in the SheetChange event that
executes every time there is a change to a worksheet. I need
it to execute onloy if the user has deleted a row.

Glen




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default Capturing deletion of a row

Maybe store the counta( in a cell somewhere and have the event do an
immediate counta and react if the two don't match??

--
Don Guillett
SalesAid Software

"Glen Mettler" wrote in message
...
How can I tell if a user has deleted a row?

I need to recal certain cells but only if the user has deleted one or more
rows. I have a macro in the SheetChange event that executes every time
there is a change to a worksheet. I need it to execute onloy if the user
has deleted a row.

Glen




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Capturing deletion of a row

Problem solved
I created a public variable RowCount
The in the ActivateSheet event I count the rows
RowCount=cells(rows.count,1).end(xlup).row

Then in the SheetChange event
I count the rows again and compare it to RowCount. If the user has added or
deleted a row I update RowCount and then run the recalc, otherwise I exit
the sub

Glen

"Glen Mettler" wrote in message
...
How can I tell if a user has deleted a row?

I need to recal certain cells but only if the user has deleted one or more
rows. I have a macro in the SheetChange event that executes every time
there is a change to a worksheet. I need it to execute onloy if the user
has deleted a row.

Glen




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
Capturing Top 5 Performers Questor Excel Worksheet Functions 5 April 18th 09 11:33 PM
capturing all of the data jimbo Excel Worksheet Functions 7 July 27th 08 06:10 PM
Capturing Date Larry Fish via OfficeKB.com New Users to Excel 4 September 27th 06 01:40 PM
Capturing an Error cskgg[_2_] Excel Programming 1 July 26th 04 07:08 AM
Capturing user name Syed Faisal[_2_] Excel Programming 4 November 18th 03 05:59 PM


All times are GMT +1. The time now is 04:28 AM.

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"