On Wed, 1 Jul 2009 07:40:01 -0700, Scotty9349
<(E-Mail Removed)> wrote:
>I have a workbook that contains 3+ worksheets. Within 2 of those worksheets I
>have 2 columns each that are for dates. WHen I run my insert_date sub (which
>I have working) I only want a date to be inserted in those specific columns.
>The cell that they enter that date is the activecell.
>
>I hope this makes sense.
If ActiveCell.Parent.Name <> "Name of sheet that doesn't get dates" Then
If ActiveCell.Column = 3 Then 'Column C
'do thing
End If
End If
You can also use ActiveCell.Parent.Codename if you're worried about someone
renaming the sheets.
--
Dick Kusleika
Microsoft MVP-Excel
http://www.dailydoseofexcel.com