CMap is ok, STL is better.... CMap uses hashbuckets, efficency based on size of the data, hash alg, etc etc etc.. Multiple keys can be achived by multiple maps with . You can reduce initialize penalty, by initializing maps as needed.. Brian
:omg: Its working now check knowledge base PRJ: Toolbar Buttons Don't Work When Using DoEvents Statement article in MSDN. PSS ID Number: Q147409 When the DoEvents statement runs in a Visual Basic for Applications macro, toolbar button commands will not run. The toolbar buttons appear fully functional, but clicking a toolbar button will not run the command for that button. Menu commands, other macros, and other applications can be run normally. Actually i placed drawing code in ToolBar button. Now i moved to Button it is working fine.