Originally Posted by
trfountain22
[...]now the PO numbers don't auto generate when I go to the next line. I'm still trying to get the calendar to work on sheet 2!
In the file you attached in this post, there is code to autogenerate a PO in sheet Security if you select a cell in column A. That works fine. Also in sheet Security if you double click on a cell with a date, the calendar pops up. Also fine.
There is no code in sheet Fire. Are you expecting the same functionality on that sheet? If so, just copy all the code from sheet Security to sheet Fire.
By the way, a With statement is redundant here, because the sheet for this code has to be the active sheet for the event to occur:
It does not cause an error but it makes the code a bit confusing. I would do this:
Also, I strongly recommend to everyone that they declare variables. Doing so prevents a lot of bug and runtime errors.
Bookmarks