how to loop till the drop down list is empty

Summer7sun

New Member
Joined
Sep 14, 2017
Messages
33
Hello world!


Please help me out with this
I have a work book which has 2 sheets named "Apple" And "Mango"
Sheet Apple cell A7 = Sheet Mango A1 example =Mango!A1
on Sheet Mango A1 it has a drop downlist and has many items


I have a macro to go to the next item in the list which is named as NextDropList


My code




Code:
Sub CallTest()




     Application.ScreenUpdating = False
    


        Sheets("List").Select
        Range("H1").Select
         
        Call Fixit
        Call Format
        Call NewTest


        Call NextDroplist


        Sheets("List").Select
        Range("H1").Select
        
      
    Application.ScreenUpdating = True
   
End Sub

I would like to Loop until the cell value in Mango A1 is blank or empty or has a value as "END of List"
 
Last edited:

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
what is it to do?....so the code runs down the lenth of Mango!A1:N..
why? what is it to do at the end?
is it supposed to do something for each record?
is it to get the next item, put is somewhere, then do something?

 
Last edited:
Upvote 0
when a new value is in MangoA1 it runs a macro only when apple A7 has a value
call fixit runs code which I dont have permission to edit , so to work around I had to make some other macros... little complicated i know .. .. with the above code I am able to use it without issues and does the job. however I want the macro to loop ... after call fixit , call format and call newtest runs ... call nextdrop list puts a new value from the list .... I want the macro to run until it finds Mango A1 is blank then exit the sub. (I know that if its a range it would be the range list ... but here the list also changes thats the reason its in this dropdown "dropdown list changes") i dont know how to explain in other words... the above code works for me but i simply want it to loop and exit once MangoA1 value is blank.
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,305
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top