JohnZ1156
Board Regular
- Joined
- Apr 10, 2021
- Messages
- 160
- Office Version
- 2021
- Platform
- Windows
I have an Excel table where I enter data each day. The first column enters the current date.
If the macro finds that data for the current date has already been entered, Then I'd like it to exit the macro.
Else, continue with macro.
Here is an example of the beginning of the macro:
etc.
If the macro finds that data for the current date has already been entered, Then I'd like it to exit the macro.
Else, continue with macro.
Here is an example of the beginning of the macro:
VBA Code:
Range("A12").End(xlDown).Select
Range("A65536").End(xlUp).Select
ActiveCell.Offset(1, 0).Select
[B]ActiveCell.Value = Date
ActiveCell.Offset(0, 3).Select[/B]
Selection.ClearContents
GSP = InputBox("Please enter the Growth Stock Current Price.", "Growth Stock Fund Price", Default, XPos:=2880, YPos:=5760)
ActiveCell.Value = ActiveCell.Value & GSP
ActiveCell.Name = "GSP"
ActiveCell.Offset(0, 1).Select
ActiveCell.Name = "GSA"