View Single Post
 
Old 11-27-2021, 08:54 AM
Stephen Ray Stephen Ray is offline Windows 10 Office 2016
Advanced Beginner
 
Join Date: Sep 2018
Location: Kansas
Posts: 34
Stephen Ray is on a distinguished road
Default

GMayor,
It works. Omigosh! I can understand what it is doing, but I never could have written it.
It steps through the entire table looking for "Deleted:"
But it only loads sName when there is a match.
I did not know VBA could do a FOR - I have been using FOR in PowerShell, so I recognize it. It is just a loop.
This saves a lot of time. And I will be able to use this in other ways.
I will experiment because I want to test for the condition when there are only spaces in that cell too. They might put spaces in the cell too.
Many Thanks.
Reply With Quote