Hi All,
Having an issue and cannot seem to trace the mistake, because I have kept everything as basic as possible so far...
I have added a tab to the ribbon in excel with the following XML code (I have removed all the "<" as even in the CODE structure, it does not display correctly:
<customui xmlns="http://schemas.microsoft.com/office/2006/01/customui"><customui xmlns="http://schemas.microsoft.com/office/2006/01/customui">customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
ribbon>
tabs>
tab id="CustomTab" label="PGCE Projects">
group id="SampleGroup" label="Groupings Displayed">
checkBox id="CheckBox1" label="PGCE Reps"
screentip="Hides/Unhides PGCE Reps for the Project"
onAction="PGCE_Reps" />
/group>
/tab>
/tabs>
/ribbon>
/customUI>
The display of the tab and the checkbox and all the labels appears fine.
I have written the following demo macro:
The macro also runs fine from the Macros menu.
However, when I click the check-box on the ribbon I get this: "Wrong number of arguments or invalid property assignment".
Anyone know whats wrong here?
The eventual goal is to have Macro A execute once when the checkbox is checked, and Macro B execute once when the checkbox is unchecked to basically hide and unhide a grouping of columns based on a description.
Thanks in advance</customui></customui>
Having an issue and cannot seem to trace the mistake, because I have kept everything as basic as possible so far...
I have added a tab to the ribbon in excel with the following XML code (I have removed all the "<" as even in the CODE structure, it does not display correctly:
<customui xmlns="http://schemas.microsoft.com/office/2006/01/customui"><customui xmlns="http://schemas.microsoft.com/office/2006/01/customui">customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
ribbon>
tabs>
tab id="CustomTab" label="PGCE Projects">
group id="SampleGroup" label="Groupings Displayed">
checkBox id="CheckBox1" label="PGCE Reps"
screentip="Hides/Unhides PGCE Reps for the Project"
onAction="PGCE_Reps" />
/group>
/tab>
/tabs>
/ribbon>
/customUI>
The display of the tab and the checkbox and all the labels appears fine.
I have written the following demo macro:
Code:
Sub PGCE_Reps()
Columns("R:Z").Hidden = True
End Sub
However, when I click the check-box on the ribbon I get this: "Wrong number of arguments or invalid property assignment".
Anyone know whats wrong here?
The eventual goal is to have Macro A execute once when the checkbox is checked, and Macro B execute once when the checkbox is unchecked to basically hide and unhide a grouping of columns based on a description.
Thanks in advance</customui></customui>
Last edited: