Hi and welcome to the forum. Unfortunately your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.
Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
Since this is your first post I'll add them for you but please remember for the future.
Try changing
to
You may not of course need a loop. It's possible you could do this with regular functions and avoid VBA altogether.
Bookmarks