Events for listobject

  • Thread starter Thread starter sai
  • Start date Start date
S

sai

Hi,

Is there a way I can trap when the user tries to add a new row to a
list object? I want to prevent the user from adding a new row. The
workbook change event is fired after the user has already entered
information into a cell and the insertrowrange has already changed. I
want to know when the user tries to enter information into the
insertrow and then prevent the user.

Sai
 
sai said:
Hi,

Is there a way I can trap when the user tries to add a new row to a
list object? I want to prevent the user from adding a new row. The
workbook change event is fired after the user has already entered
information into a cell and the insertrowrange has already changed. I
want to know when the user tries to enter information into the
insertrow and then prevent the user.

Sai
Sai,

I have a similar project where I have to prevent the user from inserting
a column in a list, though I did want them to be able to insert rows. I
unlocked all the cells in the sheet, and then protected it - the
worksheet protection methods allow you to specify whether a user is able
to insert rows or columns (independent of each other). With all the
cells unlocked, the user can still edit cells, sort the list, etc.

John Scott
 

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

Back
Top