bonekrusher
Registered User.
- Local time
- Today, 06:22
- Joined
- Nov 19, 2005
- Messages
- 266
Hi Everyone,
I am trying to load all my printers into a combo box and I keep getting the error "User-Defined type not Defined". Does anyone know the Reference library for "Dim PRT as Printer"?
Thanks!
I am trying to load all my printers into a combo box and I keep getting the error "User-Defined type not Defined". Does anyone know the Reference library for "Dim PRT as Printer"?
Code:
Private Sub Command2_Click()
Dim prt As printer
For Each prt In Application.Printers
Me!cboPrinter.AddItem Item:=prt.DeviceName
Next prt
End Sub
Thanks!