Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Selecting printer from macro

I have a form which prints using the PrintOut method. This prints to
the default printer. I have users who will change their default printer
to our plotter or inkjet printer whose limited print area affects the
form. Changing the ActivePrinter from within the macro is a problem
because the printer name is not consistent on all PC's. Is there a way,
from within the macro, to prompt the user to select the appropriate
printer?

BrianG


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Selecting printer from macro

I just posted a solution the other day in the NG..

(i'm no good at tinyurls.. so please search google newsgroups)

excel printing using IP address


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


BrianG wrote:

I have a form which prints using the PrintOut method. This prints to
the default printer. I have users who will change their default printer
to our plotter or inkjet printer whose limited print area affects the
form. Changing the ActivePrinter from within the macro is a problem
because the printer name is not consistent on all PC's. Is there a way,
from within the macro, to prompt the user to select the appropriate
printer?

BrianG


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Selecting printer from macro

Printing to an IP address won't help. Our LAN is Netware 4.11 using IPX
protocol only. Printers are ported to Netware print queues.

BrianG



*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Selecting printer from macro

Brian,

did you even bother to READ the thread?


the thread happened to be related to IP printer...
the CODE was and IS generic but untested for IP.

Afaik (and can test) the code supports all versions of excel,
on all (windows) platforms in ALL excel language versions.
It does work on local printers and should work on network printers, though
I cant test for Netware queues.


At least give a a try.
Then please let me know it works or doesn't


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


BrianG wrote:

Printing to an IP address won't help. Our LAN is Netware 4.11 using IPX
protocol only. Printers are ported to Netware print queues.

BrianG



*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Selecting printer from macro

Sorry keepITCool. Your response is very much appreciated and I did look
at it. It is just so waaaaay over my head that I didn't understand it
and since the topic was "printing to an IP printer", well I just
assumed....

I'm a real beginner at this. My experience with VB is limited to
automating some forms using Excel97 macros. I discovered early on that
including code that I didn't understand only caused me problems later.
I have no doubt my code would be considered a disaster by someone of
your skill. So, if I can't find a solution to printer selection that I
can feel comfortable including in my code I'll just live without it, and
remind users to check their default printer before printing my forms.
Hey, they're not willing to put in the effort to figure out how to
create their own automated forms so it's either mine or nothing<g.

Thanks again for the response.

BrianG



*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Selecting printer from macro


copy my code to a standard module..

then run de macro Demo.
if you see a new workbook with a list of printers..
hey! it works.


then create a userform.
add a combobox

then add code:
Private sub Userform_initialize()
combobox1.list = Printerlist()
end sub


that's all there's to it. really.





keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


BrianG wrote:

Sorry keepITCool. Your response is very much appreciated and I did

look
at it. It is just so waaaaay over my head that I didn't understand it
and since the topic was "printing to an IP printer", well I just
assumed....

I'm a real beginner at this. My experience with VB is limited to
automating some forms using Excel97 macros. I discovered early on

that
including code that I didn't understand only caused me problems later.
I have no doubt my code would be considered a disaster by someone of
your skill. So, if I can't find a solution to printer selection that

I
can feel comfortable including in my code I'll just live without it,

and
remind users to check their default printer before printing my forms.
Hey, they're not willing to put in the effort to figure out how to
create their own automated forms so it's either mine or nothing<g.

Thanks again for the response.

BrianG



*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
select printer macro jatman Excel Worksheet Functions 1 March 15th 08 01:58 PM
how doI set a macro to use with the printer? tiburon33 Excel Discussion (Misc queries) 2 December 6th 07 05:44 PM
Selecting printer in a macro lohme Excel Discussion (Misc queries) 4 January 2nd 07 06:36 PM
Selecting a printer Robin Clay[_3_] Excel Programming 0 February 2nd 04 06:25 PM
Selecting a Printer in VBA Robin Clay[_3_] Excel Programming 3 January 28th 04 01:13 AM


All times are GMT +1. The time now is 05:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"