Jeff
That makes more sense, sorry about the confusion.
That dialog is only going to return True or False depending on which button
is clicked. I don't think you can get the printer from that dialog into a
variable.
If all you're missing is the "on N01" part, you might do a google search in
the excel groups on it. I know it's been discussed before and you might get
some good information on it. I think whatever you find, you're going to
have to roll your own to do what you want.

Signature
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.
> Dick,
>
[quoted text clipped - 42 lines]
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.614 / Virus Database: 393 - Release Date: 05/03/2004
Jeff Barnes - 17 Mar 2004 03:19 GMT
Dick,
This is what I ended up doing: (using Clipper/Fivewin)
cDevices := STRTRAN( GetProfString( "Devices" ), Chr( 0 ), CRLF )
FOR X:= 1 TO MlCount( cDevices )
cPrinter := MemoLine( cDevices,,X)
cEntry := GetProfString( "Devices",cPrinter,",")
cPort := StrToken(cEntry,2,",")
IF ! Empty(cPort)
AADD(aDevices,TRIM(cPrinter)+" on "+TRIM(cPort))
ENDIF
NEXT
"aDevices" holds the aaray of printers in the Excel format.
Thanks again for your help,
Jeff
> Jeff
>
[quoted text clipped - 57 lines]
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.614 / Virus Database: 393 - Release Date: 05/03/2004