Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Choosing printer in a printing macro


Hi,

In a printing macro, is it possible to implement an menu option t
choose the
printer (I have many printers)? If yes, any ideas how?

I quoted my macro.

Thx!

Werner



Sub PrintRows()

Dim lstRw As Long
Dim lstRwPlusTwo As Long
Dim Times As String

'Je détermine le nombre d'unités locatives à traiter.
Let lstRw = Sheets("Formulaire").Range("a65536").End(xlUp).Row
lstRwPlusTwo = lstRw + 2


Rows(1 & ":" & lstRwPlusTwo).Select

Times = InputBox("Entrez le nombre de copie à imprimer: ", "Copies t
Print",
1)

Selection.PrintOut Copies:=Times, Collate:=True


End Sub



--
Werne
-----------------------------------------------------------------------
Werner's Profile: http://www.excelforum.com/member.php...fo&userid=2430
View this thread: http://www.excelforum.com/showthread.php?threadid=38454

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Choosing printer in a printing macro


Someone gave me the answer :


Code
-------------------


Application.Dialogs(xlDialogPrinterSetup).Show


-------------------

--
Werne
-----------------------------------------------------------------------
Werner's Profile: http://www.excelforum.com/member.php...fo&userid=2430
View this thread: http://www.excelforum.com/showthread.php?threadid=38454

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
Automatically choosing a printer to use Joe D Excel Discussion (Misc queries) 1 May 27th 09 12:39 PM
Printing with B&W printer edwardpestian Excel Discussion (Misc queries) 1 July 25th 06 04:56 AM
Printing from default printer Susan Excel Discussion (Misc queries) 1 February 1st 06 04:23 PM
Choosing printer in a printing macro \Jean-Jerome Doucet via OfficeKB.com\ Excel Programming 2 July 5th 05 04:31 PM
Printing To A Specified Printer Steven Pearl Excel Programming 6 January 6th 04 09:14 PM


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