Home

VBA complie error

%3CLINGO-SUB%20id%3D%22lingo-sub-1154406%22%20slang%3D%22en-US%22%3EVBA%20complie%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1154406%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20have%20vba%20code%20which%20uses%20the%20Selection%20command%20-%20eg%20Selection.Copy%3C%2FP%3E%3CP%3EIt%20has%20worked%20well%20until%20this%20morning%20when%20it%20now%20creates%20a%20compile%20error%3A%20variable%20or%20function%20not%20defined.%20I%20have%20checked%20the%20references%20and%20nothing%20is%20shown%20as%20missing.%26nbsp%3B%20Any%20suggestions%20for%20a%20fix%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi,

I have vba code which uses the Selection command - eg Selection.Copy

It has worked well until this morning when it now creates a compile error: variable or function not defined. I have checked the references and nothing is shown as missing.  Any suggestions for a fix