troubleshooting Question

Looping Code

Avatar of sandramac
sandramac asked on
Microsoft Excel
6 Comments1 Solution169 ViewsLast Modified:
Hello, I have the following code below; I have this same code pasted 9 times, except the next range would be B506, then B507, then B508 and so on...  How would I set it up to run starting with the range being B507, which is my first cell with data and then once this code finishes checks cell B508, if it is blank then end code, if not copy paste that value into b18 and call WebDataSingle.

Range("B506").Select
    Selection.Copy
    Range("B18").Select
    ActiveSheet.Paste
Call WebDataSingle
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros