I need VBA code to put into Outlook that will be called and will count the number of emails in the particular Exchange folder that is open and put the count in string format onto the windows clipboard. The calling program (which has no VBA access) will read the text string from the clipboard and continue in a loop.
The VBA function or sub routine is run by my program by simulating Alt-F8 in Outlook and "typing in" the name of the function or subroutine.
I grabbed and tweaked code but it doesn't work. I have very little knowledge of VBA or VB.