Compare Database isn't applicable for Excel because it's not a Database.
Option Explicit, on the other hand, is a VBA specific declaration which requires that all variables must be Dimmed before you can use them in a Function or Sub.
Inasmuch as VBA is common to all Office applications, albeit with different sets of actions and methods, it has the same requirements in Excel as in Access.