Workbook_SheetChange

  • Thread starter Thread starter masterphilch
  • Start date Start date
M

masterphilch

Hi

Is it somehow possible to check if a row's been inserted? Is there any
construct of code or do I need to loop through a field and check that
'manually'?

thanks for help

masterphilch
 
thanks for that hint!

could it be possible to determine the start- and endrow of that named range?

thanks for reply
 
One way:

Dim nStartRow As Long
Dim nEndRow As Long
With Range("MyRange")
nStartRow = .Item(1).Row
nEndRow = .Item(.Count).Row
End With
 
m,

With Range("PhilchArea")
MsgBox .Rows(1).Row & " is the first row. "
MsgBox .Rows(.Rows.Count).Row & " is the last row. "
End With

Jim Cone
San Francisco, USA


thanks for that hint!
could it be possible to determine the start- and endrow of that named range?
thanks for reply
 
thanks a lot!

JE said:
One way:

Dim nStartRow As Long
Dim nEndRow As Long
With Range("MyRange")
nStartRow = .Item(1).Row
nEndRow = .Item(.Count).Row
End With
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

prevent UDF from executing 4
delete rows autofilter 3
dynamic userform 1
columnshead with listbox 2
delete name range 3
controls.add 1
sheetchange 2
Private Sub Workbook_SheetChange 4

Back
Top