Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default Printing Macro question

Hello
Im using the following code to print:

Private Sub CommandButton2_Click()
Sheets(Array("Sheet1", "Sheet2")).Select
Application.ActivePrinter = "\\s45657\hp deskjet 6122 series on Ne02:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

I want to run the macro from other machines that have the same printer
attached but not the same "NE01". I presume this number is assigned as the
printer is installed. In that that have several different sheets that print
at different printers, it is not practical for a choose printer dialog. Is
there anyway to reassign the NE numbers outside of removing and reintalling
the printers in the same order?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Printing Macro question

Sandy,

This topic was covered a couple of days ago. I don't understand why a print
dialog is not feasible (that was my suggestion :-)), but there is an
alternative suggested.

Check here http://tinyurl.com/3n4oj

--
HTH

Bob Phillips

"Sandy" wrote in message
...
Hello
Im using the following code to print:

Private Sub CommandButton2_Click()
Sheets(Array("Sheet1", "Sheet2")).Select
Application.ActivePrinter = "\\s45657\hp deskjet 6122 series on Ne02:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

I want to run the macro from other machines that have the same printer
attached but not the same "NE01". I presume this number is assigned as

the
printer is installed. In that that have several different sheets that

print
at different printers, it is not practical for a choose printer dialog.

Is
there anyway to reassign the NE numbers outside of removing and

reintalling
the printers in the same order?

Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default Printing Macro question

Not feasible in my ignorance I suppose----If I were to do this Print Dialog
how would it look and how would I modify my code for each new sheet and each
different printer?
Thanks for your reply

"Bob Phillips" wrote:

Sandy,

This topic was covered a couple of days ago. I don't understand why a print
dialog is not feasible (that was my suggestion :-)), but there is an
alternative suggested.

Check here http://tinyurl.com/3n4oj

--
HTH

Bob Phillips

"Sandy" wrote in message
...
Hello
Im using the following code to print:

Private Sub CommandButton2_Click()
Sheets(Array("Sheet1", "Sheet2")).Select
Application.ActivePrinter = "\\s45657\hp deskjet 6122 series on Ne02:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

I want to run the macro from other machines that have the same printer
attached but not the same "NE01". I presume this number is assigned as

the
printer is installed. In that that have several different sheets that

print
at different printers, it is not practical for a choose printer dialog.

Is
there anyway to reassign the NE numbers outside of removing and

reintalling
the printers in the same order?

Thanks!




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Printing Macro question

Sandy,

I wouldn't have thought you would do it for each sheet. just throw the print
dialog up and then just print each sheet after, the printer would be
defaulting?

--
HTH

Bob Phillips

"Sandy" wrote in message
...
Not feasible in my ignorance I suppose----If I were to do this Print

Dialog
how would it look and how would I modify my code for each new sheet and

each
different printer?
Thanks for your reply

"Bob Phillips" wrote:

Sandy,

This topic was covered a couple of days ago. I don't understand why a

print
dialog is not feasible (that was my suggestion :-)), but there is an
alternative suggested.

Check here http://tinyurl.com/3n4oj

--
HTH

Bob Phillips

"Sandy" wrote in message
...
Hello
Im using the following code to print:

Private Sub CommandButton2_Click()
Sheets(Array("Sheet1", "Sheet2")).Select
Application.ActivePrinter = "\\s45657\hp deskjet 6122 series on

Ne02:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

I want to run the macro from other machines that have the same printer
attached but not the same "NE01". I presume this number is assigned

as
the
printer is installed. In that that have several different sheets that

print
at different printers, it is not practical for a choose printer

dialog.
Is
there anyway to reassign the NE numbers outside of removing and

reintalling
the printers in the same order?

Thanks!






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default Printing Macro question

OK Bob
I am going to use Application.Dialogs(xlDialogPrint).Show. I select
printerA and print sheets 1-6. I also need 2 copies of shts 3 and 6 on the
same printer. How do I do do shts 3 and 6 (the second copies),before moving
on to the next printer?
Thanks
Sandy

"Bob Phillips" wrote:

Sandy,

I wouldn't have thought you would do it for each sheet. just throw the print
dialog up and then just print each sheet after, the printer would be
defaulting?

--
HTH

Bob Phillips

"Sandy" wrote in message
...
Not feasible in my ignorance I suppose----If I were to do this Print

Dialog
how would it look and how would I modify my code for each new sheet and

each
different printer?
Thanks for your reply

"Bob Phillips" wrote:

Sandy,

This topic was covered a couple of days ago. I don't understand why a

print
dialog is not feasible (that was my suggestion :-)), but there is an
alternative suggested.

Check here http://tinyurl.com/3n4oj

--
HTH

Bob Phillips

"Sandy" wrote in message
...
Hello
Im using the following code to print:

Private Sub CommandButton2_Click()
Sheets(Array("Sheet1", "Sheet2")).Select
Application.ActivePrinter = "\\s45657\hp deskjet 6122 series on

Ne02:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

I want to run the macro from other machines that have the same printer
attached but not the same "NE01". I presume this number is assigned

as
the
printer is installed. In that that have several different sheets that
print
at different printers, it is not practical for a choose printer

dialog.
Is
there anyway to reassign the NE numbers outside of removing and
reintalling
the printers in the same order?

Thanks!








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Printing Macro question

You would need to re-do the dialog, not what you want eh?

--
HTH

Bob Phillips

"Sandy" wrote in message
...
OK Bob
I am going to use Application.Dialogs(xlDialogPrint).Show. I select
printerA and print sheets 1-6. I also need 2 copies of shts 3 and 6 on

the
same printer. How do I do do shts 3 and 6 (the second copies),before

moving
on to the next printer?
Thanks
Sandy

"Bob Phillips" wrote:

Sandy,

I wouldn't have thought you would do it for each sheet. just throw the

print
dialog up and then just print each sheet after, the printer would be
defaulting?

--
HTH

Bob Phillips

"Sandy" wrote in message
...
Not feasible in my ignorance I suppose----If I were to do this Print

Dialog
how would it look and how would I modify my code for each new sheet

and
each
different printer?
Thanks for your reply

"Bob Phillips" wrote:

Sandy,

This topic was covered a couple of days ago. I don't understand why

a
print
dialog is not feasible (that was my suggestion :-)), but there is an
alternative suggested.

Check here http://tinyurl.com/3n4oj

--
HTH

Bob Phillips

"Sandy" wrote in message
...
Hello
Im using the following code to print:

Private Sub CommandButton2_Click()
Sheets(Array("Sheet1", "Sheet2")).Select
Application.ActivePrinter = "\\s45657\hp deskjet 6122 series

on
Ne02:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

I want to run the macro from other machines that have the same

printer
attached but not the same "NE01". I presume this number is

assigned
as
the
printer is installed. In that that have several different sheets

that
print
at different printers, it is not practical for a choose printer

dialog.
Is
there anyway to reassign the NE numbers outside of removing and
reintalling
the printers in the same order?

Thanks!








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
An IF question plus Printing Macro sahafi Excel Worksheet Functions 0 March 20th 08 03:33 PM
macro printing question Pete W. Excel Discussion (Misc queries) 1 January 9th 07 07:35 AM
Printing question Otto Moehrbach Excel Discussion (Misc queries) 3 November 24th 06 03:56 PM
Printing Question spartanmba Excel Discussion (Misc queries) 1 January 27th 05 09:57 PM
macro printing question cb Excel Programming 4 August 9th 04 04:52 PM


All times are GMT +1. The time now is 10:59 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"