View Full Version : Explain What a "CallBack" is

01-22-2010, 11:42 AM
Jn reviewing various discussions about the Ribbon, the writers often mention the "CallBack", but I have been unable to figure out what that is. Will someone attempt to explain it to me in 5000 words or less please?

01-22-2010, 06:33 PM
The way I think of it

1. XML CustomUI code is in a document (XLSM, DOCM, etc.) that puts a control on the ribbon

2. User clicks or does something to the Ribbon control

3. The control 'calls back' to the document to be handled.


Might be worth while to browse through the earlier postings in the Ribbon forum. Ken Puls has put a lot of good information into his answers, others also of couse, but Ken writes and explains things very well


Bob Phillips
01-29-2010, 07:32 AM
A callback is essentially the OnAction macro, except that it applies to various events such as clicking, get image, get enabled, get image size etc. It is also passed the ribbon control as an argument, much like commandbars can use Application.Commandbars.ActionControl.