ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro to print to IP address (https://www.excelbanter.com/excel-programming/416472-macro-print-ip-address.html)

Larry S

Macro to print to IP address
 
Can someone help me with a macro to print to an IP address. I have a stand
alone network printer that i want to print to and everyone has the printer
named differently on their computer. The only constant is the IP address.

Thanks in advance,
Larry

joel

Macro to print to IP address
 
Add a new Printer using IP address using the following instructios. Then use
the new printer.

1) Start button - Settings - printer and fx
2) Add printer
3) Next - Local Printer attached to this computer. Un-check automatically
detect and install my Plug and Play Printer
4) Next - Create a new Port - Standard TCP/IP Port
5) Next - Next
6) Enter IP Address For Printer in Printer Name or IP Address
7) continue responding to questions until New Printer is installed
8) Go back to excel and select the new printer.

"Larry S" wrote:

Can someone help me with a macro to print to an IP address. I have a stand
alone network printer that i want to print to and everyone has the printer
named differently on their computer. The only constant is the IP address.

Thanks in advance,
Larry


Larry S

Macro to print to IP address
 
Thanks, but the question wasn't how ti install a network printer. I need a
macro that will print to a printers IP address.


"Joel" wrote:

Add a new Printer using IP address using the following instructios. Then use
the new printer.

1) Start button - Settings - printer and fx
2) Add printer
3) Next - Local Printer attached to this computer. Un-check automatically
detect and install my Plug and Play Printer
4) Next - Create a new Port - Standard TCP/IP Port
5) Next - Next
6) Enter IP Address For Printer in Printer Name or IP Address
7) continue responding to questions until New Printer is installed
8) Go back to excel and select the new printer.

"Larry S" wrote:

Can someone help me with a macro to print to an IP address. I have a stand
alone network printer that i want to print to and everyone has the printer
named differently on their computer. The only constant is the IP address.

Thanks in advance,
Larry


joel

Macro to print to IP address
 
Onced you have a printer installed all you have to do is select thie correct
printer

Application.ActivePrinter = "\\MYSPOOL\EASTPRINTER on AB10:"

You need to have a spooler on windows to send the data over the internet.
types of sppolers would be a Print Spooler, or a Mail Spooler, or some other
type of program that send data over the internet like FTP, HTTP.

You have an open excel file that you need to format and send over the
internet. A printer won't accept an excel file directly. You could print to
a file and then send the file to the printer. You would need to use FTP to
sent the file to the printer.

"Larry S" wrote:

Thanks, but the question wasn't how ti install a network printer. I need a
macro that will print to a printers IP address.


"Joel" wrote:

Add a new Printer using IP address using the following instructios. Then use
the new printer.

1) Start button - Settings - printer and fx
2) Add printer
3) Next - Local Printer attached to this computer. Un-check automatically
detect and install my Plug and Play Printer
4) Next - Create a new Port - Standard TCP/IP Port
5) Next - Next
6) Enter IP Address For Printer in Printer Name or IP Address
7) continue responding to questions until New Printer is installed
8) Go back to excel and select the new printer.

"Larry S" wrote:

Can someone help me with a macro to print to an IP address. I have a stand
alone network printer that i want to print to and everyone has the printer
named differently on their computer. The only constant is the IP address.

Thanks in advance,
Larry



All times are GMT +1. The time now is 04:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com