troubleshooting Question

VB routine required

Avatar of Saqib Husain
Saqib HusainFlag for Pakistan asked on
Visual Basic ClassicMicrosoft Excel
8 Comments1 Solution276 ViewsLast Modified:
I have a list of data where there are a's in the second column

- Whenever there is a single a series I want to run routine x with a single argument sending the row number
- Whenever there is a continuous series of a's I want to run routine y with two arguments sending the first and last row numbers

so for the list

2          a
4          a
5          a
6          a
7          a
11          a
12          a
13          a
17          a

I would send

call x(2)
call y(4,7)
call y(11,13)
call x(17)

can someone write me a routine to do this?
lets say the numbers are stored in c(1 to 20,1)
and the a's are stored in c(1 to 20,2)


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
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 8 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