Home

How do I get the macro to run on values wherever I highlight? Macro I created only runs in th

%3CLINGO-SUB%20id%3D%22lingo-sub-736658%22%20slang%3D%22en-US%22%3EHow%20do%20I%20get%20the%20macro%20to%20run%20on%20values%20wherever%20I%20highlight%3F%20Macro%20I%20created%20only%20runs%20in%20th%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-736658%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EHow%20do%20I%20get%20the%20macro%20to%20run%20on%20values%20wherever%20I%20highlight%3F%26nbsp%3B%20Macro%20I%20created%20only%20runs%20in%20the%20field%20I%20recorded.%26nbsp%3B%20Arguments%20to%20macro%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-736658%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBI%20%26amp%3B%20Data%20Analysis%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%20Macro%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-737513%22%20slang%3D%22en-US%22%3ERe%3A%20How%20do%20I%20get%20the%20macro%20to%20run%20on%20values%20wherever%20I%20highlight%3F%20Macro%20I%20created%20only%20runs%20in%20th%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-737513%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F370647%22%20target%3D%22_blank%22%3E%40David4645145%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20David%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20is%20an%20option%20in%20the%20Developer%20tab%20called%20(Use%20Relative%20References)%20and%20this%20is%20what%20you%20need.%3C%2FP%3E%3CP%3EPlease%20check%20out%20this%20%3CA%20href%3D%22https%3A%2F%2Fwww.excel-easy.com%2Fvba%2Fexamples%2Fuse-relative-references.html%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Elink%3C%2FA%3E%20to%20learn%20more%20about%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20that%20helps%3C%2FP%3E%3C%2FLINGO-BODY%3E
David4645145
Occasional Visitor

How do I get the macro to run on values wherever I highlight?  Macro I created only runs in the field I recorded.  Arguments to macro?

1 Reply

@David4645145

 

Hi David,

 

There is an option in the Developer tab called (Use Relative References) and this is what you need.

Please check out this link to learn more about it.

 

Hope that helps