![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 19
|
For some reason when I add a row to a worksheet, the change event does not seem to fire..what may i be doing wrong?
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sydney, Australia
Posts: 2,908
|
Hi,
The Change event is only fired if the contents of a cell change. Inserting a row won't cause the contents of any cells to change (except maybe some calculated cells) so the event won't be fired. You could use the Calculate event to trap this although it's not 100% foolproof. Regards, Dan |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 19
|
actually i just added one cell and tabbed to the next cell and it did not fire..
please help! |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sydney, Australia
Posts: 2,908
|
You need the Selection_Change event then e.g.
Private Sub Worksheet_SelectionChange(ByVal Target As Range) MsgBox "You are now in cell " & Target.Address End Sub HTH, Dan |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|