I am calling Excel macro from VB program. Excel is minimized all the time (by some reason it is even not displayed on the task bar...). So, I have the VB window, and above it I have a UserForm generated by Excel. However, if I switch to any other application (e.g., internet), I can not get the UserForm displayed again. The VB window is displayed, but there is not Excel UserForm above it! So, I can not see what the Excel macro is doing and if it works at all. If I click on VB window, I get the message “The action can not be completed because the other application is busy”. When I choose “Switch to…”, nothing happens…
I know this is not the solution you're hoping for, but... Wouldn't it be cleaner to execute the code you need all from within VB, instead of calling on an Excel macro? You retain much more control that way, and you can do everything from within VB that you can do in Excel VBA. Rob
I still don't see why you can't use Excel solver without using Excel macros. Are the userforms you are talking about generated by your Excel code, or do you mean the forms that the solver puts up? Rob
hm... the UserForms are coming from VBA code that I created...
VB program calls "main" macro in Excel. This macro, in turn, calls several other subrutines and displays three UserForms, which shows what task is performed ("constracting graph..", etc).
Yes, maybe, instead of calling one "main" macro from VB and then managing process within Excel, I can operate it by VB program... I will try this. Thanks!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.