cycle macro

overbet

Board Regular
Joined
Jul 9, 2010
Messages
63
Office Version
  1. 2010
Is it possible in vba to have a macro button that cycles through preset data? Example would be in cell A1 the data contains the text "A". When pressing the button once the data changes from "A" to "B" when pressed again the text changes from "B" to "C" when pressed again the text changes "C" to "D" and when pressed again the data changes from "D" to "A" starting the cycle over again. I have searched to the best of my ability, but I am unable to see if this is even possible. Thanks for your comments.
 
Not for me it doesn't it cycles from A to D & back to A.
Do you have have anything other than A,B,C or D in those cells?
 
Upvote 0

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Not for me it doesn't it cycles from A to D & back to A.
Do you have have anything other than A,B,C or D in those cells?
Thats really weird. I just tried it again and it is working as requested. I closed it and reopened it. I had several other excel sheets open, but they were in different instances. It went through the alphabet a-z and then onto numeric characters and symbols even the euro sign haha. Bizarre. It is working now and thank you very much for helping me out.
 
Upvote 0
Not for me it doesn't it cycles from A to D & back to A.
Do you have have anything other than A,B,C or D in those cells?
Ahhh I see what it was in case youre curious and so you know Im not crazy lol. When it cycled through the other characters it was because I had used lower case letters to test it. In upper case it functions properly. Again thanks a bunch for your time and help.
 
Upvote 0

Forum statistics

Threads
1,214,638
Messages
6,120,676
Members
448,977
Latest member
moonlight6

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