I realize this is a very old thread, but thinking my recent experience may benefit someone...
I'm pretty green with VBA. I have some work that may benefit from it so I decided to see if I could get from point A to point B. Unfortunately, point B is a very, very long way from point A. I know even less about GPIB control so it's been tough slogging.
I tried to run the linked code as well, with no success. I have Office 2010/Win 7 and when trying to open the .xls file, I received the following window: "Opening the VBA project in this file requires a component that is not currently installed. This file will be opened without the VBA project. For more information, search Microsoft Office Online for "VBA converters." ". I went to the website and because it's changed over time, was not able to find what I needed.
I was just about ready to throw in the towel when I Googled for "office.com VBA converters", which led me to:
https://support.microsoft.com/en-us/kb/926430
Follow the instructions and you will be able to load the .xls file and the offending .bas files.
With one annoying problem...
In my case, two of the VBA modules refused to load. "SampleCode.bas" would load. "vbib-32.bas" and "niglobal.bas" would not.
As I said, I have no experience with this stuff so I'm still fumbling about. Through trial and error, I was able to look over "SampleCode.bas" and make alterations that worked for the other two files.
First, change the name of "vbib-32.bas" to "vbib_32.bas" or similar. For some reason, Excel does not like the hyphen.
Next, open each of the two files with Notebook and change the first lines, eliminating ".bas". Also, make sure the name on that first line matches the filename. For example, if your filename is changed to "vbib_32.bas", the first line of that file should be " Attribute VB_Name = "vbib_32" " (eliminate outside double quote marks).
If you follow the instructions on the link I've provided, you'll at least be able to get the modules reloaded and can begin trying to make them work. That's where I am at this point so I really can't tell you anything else.
I just wanted to help anyone, who like me, is frustrated trying to use the ni example.
-Grub