Automatic detection of a change in a column/cell

  • Thread starter Adrian Nightingale
  • Start date
A

Adrian Nightingale

Hi

I need to run some code to export a row from one worksheet
to another when a cell has a date in it, also to remove
the exported row when the cell is blanked, does anyone
know a way of detecting when a cell has been changed ?

Thanks
 
G

Greg Wilson

Right click the sheet tab and select View Code. Then
paste the following to the worksheet code module:

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'Your code here.
End Sub

Regards,
Greg
 

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

Top