Patricia0923
New Member
- Joined
- Mar 18, 2014
- Messages
- 25
I have created a spreadsheet to do the following...
Upon entering a valid date in cell C1, VBA runs the code for R2D2.
The code I used for this is:
If Target.Address = "$C$1" Then
Application.Run "R2D2"
This works fine except the spreadsheet will also run if the cell is blank and you click in it and press enter, and it will also run if you put in an invalid date and press enter.
Any suggestions would be appreciated!
Thanks!
Upon entering a valid date in cell C1, VBA runs the code for R2D2.
The code I used for this is:
If Target.Address = "$C$1" Then
Application.Run "R2D2"
This works fine except the spreadsheet will also run if the cell is blank and you click in it and press enter, and it will also run if you put in an invalid date and press enter.
Any suggestions would be appreciated!
Thanks!