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 ...
Microsoft Excel allows us to create Custom Excel Functions or User Defined Functions using VBA. We can create Custom Excel Functions with the functionality we want and they can be accessed in the ...
How to handle VBA’s four most common errors in Microsoft 365 apps Your email has been sent Even experts inadvertently introduce errors into their VBA code. Most of us see some errors more than others, ...