Hoping someone out there can help!
When I try to run this and it can't find the text for the current date (ie. if you were in Excel rather than VBA it would return "N/A") it gives me the dreaded 1004 run time error message. If it can find the current date in the ActiveCell then there is no problem (which makes me wonder what the hell I'm doing wrong because it doesn't seem to be syntax problem, or else why does it work at all?).
If I do a IsNA error check to the above it gives the same result...
Many thanks in advance to anyone who can assist!
Code:
comment = ActiveCell.Value
comment = Application.WorksheetFunction.Find(Format(Date, "MM/DD"), comment)
When I try to run this and it can't find the text for the current date (ie. if you were in Excel rather than VBA it would return "N/A") it gives me the dreaded 1004 run time error message. If it can find the current date in the ActiveCell then there is no problem (which makes me wonder what the hell I'm doing wrong because it doesn't seem to be syntax problem, or else why does it work at all?).
If I do a IsNA error check to the above it gives the same result...
Many thanks in advance to anyone who can assist!