Well, what really determines the range of modern naval weapons today is not the performance of the weapon itself, but rather the instruments used to detect/track a contact. Missiles with fire-and-forget systems can (in theory at least) be fired in the general direction of a hostile ship, and then the missile itself would find it's target. The problem is that such a move would probably not result in a hit, simply since the sea is too big. You need to know exactly where a hostile ship is until you can attack it and count on hitting it. Also, a missile fired can be detected, giving the enemy an idea about where you are, which is something you definitly not want to happen.
Bottomline: usually firing at anything that you do not have a radar (or some other kind of sensor) track on is nearly always a waste of tax money.