code works - need to save

  • Thread starter Thread starter Ted Roche
  • Start date Start date
T

Ted Roche

Hutch: Thanks for this. Need a little further help. The validation works on the cell where I want to require the user to provide entry. They are selecting from a validation list (3 choices).

However, I want to save the file with the cell empty and because of the VBA, I can't! How do I get around that?

Thanks again.

Ted

EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
Hi,

Please don't break up your posts. Why not add a Workbook_BeforeSave event
which clears the cell(s) before the file closes?

Here is some sample code:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim isect As Range
Set isect = Application.Intersect(Target, Range("A1"))
If Not isect Is Nothing Then
'Your code here
End If

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire

in message news:[email protected]...
 

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