Problem solved. Apparently, I wasn't giving the webpage enough time to finish outputting everything. I used setTimeout to wait a few seconds and then I was able to search for the text.
I am writing a Bubbles (http://www.bubbleshq.com) extension for YouMail.com. I am trying to write a script that parses the text on the web page to read how many new messages I have. It appears that the text (e.g. "1 new") is generated by javascript and even though it is visible in the screen, I...
Here is the code I used, maybe you can scavenge what you need from it. I use Enumerate printers to populate a dropdown box named cbPrinters. Then I use ActivatPrtr to activate the printer the user has selected:
Option Explicit
Const PRINTER_ENUM_CONNECTIONS = &H4
Const PRINTER_ENUM_LOCAL =...
bcastner, looks like you're right. I tested several computers with different OSes. The results were consistent along the lines of each of the two available drivers (winNT/2k/XP and win95/98)
I have two PCs, one running win98 and one running win2k, printing to a Toshiba e-Studio copier. Both PCs are using the PCL6 driver provided by Toshiba. When printing the exact same Excel Spreadsheet with margins set the same, the win2k print job squeezes more lines onto a page than the win98...
CajonCenturion (or paulbent), how do I call those API functions in VBA excel? I tried putting PRINTER_INFO5 in a sub and it said it was undefined. I've tried referencing a bunch of things, but none of them have given me any success.
Here is what I used to get it to work -- I had to use error handling which is not what I wanted to do because I believe that it introduces more margin for error -- if you figure out how to return the Ne# using VBA let me know.
Sub SetPrinter()
On Error GoTo Network...
Paulbent -- If I am correct, that only applies to VB5 or VB6, not VBA
CajunCenturion -- I can already do what your code does (although MUCH more inefficiently...I wish I would have found your post a week ago). It is returning a list of printers and their port names as displayed when you look...
CajunCenturion,
Thanks for following up on this.
I am not in front of my PC right now so I can't provide you with very detailed information, but if I remember correctly it gave me a compilation error on the first line in the routine ( Dim lObj_ScriptControl As IWshNetwork_Class ). I...
SUnderwood,
Did you ever solve this issue using VBA? I couldn't get CajunCenturion's to work (could his be VB not for Apps?). I am running into the same issues and would greatly appreciate your help.
Here is my situation:
Is there a way to retrieve the NeXX (I'm guessing this is a pointer)...
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.