Yes. Couple of tips: use datatypes on your parameter declarations and your Function declaration, and "Range" is a (very commonly used) object in Excel so picking a different name for your function ...
If programming or scripting in general scares you, you don't need to worry either. You don't need to be a programming wizard ...
How to execute a VBA sub procedure in Microsoft Excel Your email has been sent Once you stick your toe into the VBA waters, you’ll realize how powerful and flexible VBA is. Not only is the language ...
How to use VBA’s InputBox function to select a range on the fly in Excel Your email has been sent Often, you’ll want Excel users to specify a range that the app then uses in an automated way.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results