LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Sub Worksheet_Change(ByVal Target As Excel.Range) Questions

Sub Worksheet_Change(ByVal Target As Excel.Range) is an Excel lib
function and it is called after the user changes the value/format of
any cell.

I took a glance at the post you described and it's not related to what
I need to do. Let me try to explain it more clearly.

Say I have 100 rows. Now I delete 10 from the middle and the total rows
drops to 90 and the rows are labeled 1 to 90.

However in my case I delete the 10 rows and the row count stays at 100.
Because the function Sub Worksheet_Change() is called and I examine the
user input which turns out to be making the cell values empty.

Now I can't simply say delete a row if the contents are empty because I
need to allow the user to have empty cells/rows. I just want a way to
determine if the user has actually removed a row/cell instead of just
emptying the contents.

For example if you highlight a row and hit the delete key it just
empties the contents. But if you right click on the row and select
delete it actually removes the row from teh sheet and subtracts 1 from
the total row count.

Does this make more sense?

 
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
Private Sub Worksheet_Change(ByVal Target As Excel.Range) Arturo Excel Programming 5 March 9th 07 04:30 PM
Private Sub Worksheet_Change(ByVal Target As Excel.Range) [email protected] Excel Worksheet Functions 0 December 21st 06 02:13 AM
Sub Worksheet_Change(ByVal Target As Excel.Range) Questions Wescotte Excel Programming 3 June 29th 05 10:53 PM
Worksheet_Change(ByVal Target As Excel.Range) Daggi Excel Programming 3 June 29th 05 02:59 PM
Excel VBA .... Worksheet_Change(ByVal Target As Range) question Joseph Donnelly Excel Programming 2 May 17th 04 08:35 PM


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