Quantcast
Channel: NodeXL: Network Overview, Discovery and Exploration for Excel
Viewing all articles
Browse latest Browse all 4386

New Post: Macro/ VBA options in NodeXL

$
0
0
Alex:

A few years ago, I tried to do what you're describing. My technique was to use VBA to iterate through all the controls in the Excel ribbon, looking for the NodeXL-specific controls I had placed there (I'm the NodeXL programmer) so I could "click" them. I believe I used Excel's CommandBars collection. Surprisingly, there was no sign of the NodeXL ribbon tab or any of its children anywhere in the collection. Apparently, Excel doesn't make custom ribbon enhancements available to VBA code. The CommandBars collection contained only Excel's built-in controls.

That's not to say that what you want to do is impossible, only that my own attempts failed. One thing I meant to look at but didn't have the time for was Microsoft's "UI Automation Framework" (http://msdn.microsoft.com/en-us/library/ms747327.aspx). I don't know offhand if that can be made to work from VBA.

If you find some solution, please let me know. At least one other person has asked about this.

-- Tony

Viewing all articles
Browse latest Browse all 4386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>