I'm very new to the world of XML ribbon customization so I'm wondering if someone can help me with what I'm trying to achieve. I have a macro which allows a user to select any cell y rows and x columns away from the active cell and have it "follow" the movements of the activecell. I'm trying to build a toggle button which will run the macro with myTog=True (on), and when pressed again it will run the macro again and set myTog = False. So, my question is how I interact with the ribbon toggle button in the macro code to manipulate myTog.
Any suggestions?
Here's my XML code:
<togglebutton id="Tracker" label="Track Cells" screentip="Track Cells" supertip="Select a cell to track" image="TRACK1" size="large"><togglebutton id="Tracker" label="Track Cells" screentip="Track Cells" supertip="Select a cell to track" image="TRACK1" size="large">
<togglebutton id="Tracker" label="Track Cells" screentip="Track Cells" supertip="Select a cell to track" image="TRACK1" size="large">
Here's my macro code:
</togglebutton></togglebutton></togglebutton></togglebutton>
Any suggestions?
Here's my XML code:
<togglebutton id="Tracker" label="Track Cells" screentip="Track Cells" supertip="Select a cell to track" image="TRACK1" size="large"><togglebutton id="Tracker" label="Track Cells" screentip="Track Cells" supertip="Select a cell to track" image="TRACK1" size="large">
HTML:
<toggleButton id="Tracker" label="Track Cells" screentip="Track Cells" supertip="Select a cell to track" image="TRACK1" size="large"/>
Here's my macro code:
Code:
If myTog = False Then Exit Sub
Union(ActiveCell, ActiveCell.Offset(Track_Y, Track_X)).Select
Last edited: