|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Can I use VB to run a macro in any Microsoft application?Can I use VB to run a macro in any Microsoft application?
My goal is to place the following in a macro: "Alt+tab, Alt+spacebar, 'M', left mouse click". This will allow me to switch mouse focus when I switch applications. The problem is that I've only made VBA scrips in Excel, and I don't think that these VBA macros work outside of Excel. Can VB be used outside of Excel? Is this something that can be done in .NET or regular VB? Using SendKeys like that is always a bad idea. You are "assuming" the window
has the focus, but you never really know. Automation is the way to go Show quoteHide quote "Neji" <chillyn***@yahoo.com> wrote in message news:1146500213.904079.267650@i39g2000cwa.googlegroups.com... > Can I use VB to run a macro in any Microsoft application? > > My goal is to place the following in a macro: "Alt+tab, Alt+spacebar, > 'M', left mouse click". This will allow me to switch mouse focus when > I switch applications. > > The problem is that I've only made VBA scrips in Excel, and I don't > think that these VBA macros work outside of Excel. Can VB be used > outside of Excel? Is this something that can be done in .NET or > regular VB? >
hierachical related data in datatset
Access rights for a web application to read a text file on a different server Binding to an enumeration web reference to system.web.dll Multithreading Problem Traversing a Collection Converting VB Script Code to VB.NET 2005 SelectionChangeCommitted event evaluate or transform or ??? TCP send & Recieve |
|||||||||||||||||||||||