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

I have a macro that does some page formatting, prints the document, and then
reformats the page. Now I have a designated printer but would like to have
the ability to pick which printer I want to use then continue with the
reformating.

How do I do this??
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default Selecting printer in a macro

Application.Dialogs(9).Show

"lohme" wrote:

I have a macro that does some page formatting, prints the document, and then
reformats the page. Now I have a designated printer but would like to have
the ability to pick which printer I want to use then continue with the
reformating.

How do I do this??

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default Selecting printer in a macro

I would use the built-in constant

application.Dialogs(xldialogprint).show

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Stephen C" wrote in message
...
Application.Dialogs(9).Show

"lohme" wrote:

I have a macro that does some page formatting, prints the document, and
then
reformats the page. Now I have a designated printer but would like to
have
the ability to pick which printer I want to use then continue with the
reformating.

How do I do this??



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Selecting printer in a macro

This is my current entire macro. How would I fit this in?

ActiveWindow.ScrollWorkbookTabs Position:=xlLast
Sheets("Transactions").Select
Range("A1").Select
Application.Goto Reference:="R8C14"
Selection.AutoFilter Field:=14, Criteria1:="15", Operator:=xlTop10Items
Range("A1").Select
Range("A1:R101").Select
Columns(1).SpecialCells(xlCellTypeBlanks).EntireRo w.Hidden = True
'Application.ActivePrinter = "\\vsprint006\N441TEK8550 on Ne04:"
ActiveWindo.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"\\vsprint006\N441TEK8550 on Ne04:", Collate:=True
Columns(1).SpecialCells(xlCellTypeBlanks).EntireRo w.Hidden = False
Application.Goto Reference:="R8C14"
Selection.AutoFilter Field:=14
Range("A1").Select

"Bob Phillips" wrote:

I would use the built-in constant

application.Dialogs(xldialogprint).show

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Stephen C" wrote in message
...
Application.Dialogs(9).Show

"lohme" wrote:

I have a macro that does some page formatting, prints the document, and
then
reformats the page. Now I have a designated printer but would like to
have
the ability to pick which printer I want to use then continue with the
reformating.

How do I do this??




  #5   Report Post  
Posted to microsoft.public.excel.misc
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Selecting printer in a macro

thanks...worked great!

"Bob Phillips" wrote:

I would use the built-in constant

application.Dialogs(xldialogprint).show

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Stephen C" wrote in message
...
Application.Dialogs(9).Show

"lohme" wrote:

I have a macro that does some page formatting, prints the document, and
then
reformats the page. Now I have a designated printer but would like to
have
the ability to pick which printer I want to use then continue with the
reformating.

How do I do this??




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
Selecting all cells using macro robertlewis Excel Discussion (Misc queries) 3 October 11th 06 10:13 PM
Excel Macro - change printer Samrcat Excel Discussion (Misc queries) 14 June 28th 06 05:47 PM
How to stop Excel remembering/loading macro from previously opened Workbook Norman Yuan Excel Discussion (Misc queries) 4 June 17th 06 04:13 PM
Selecting from a Validation Drop Down Box aborts macro Lreeder Excel Worksheet Functions 0 August 27th 05 01:41 AM
Calculate commissions Pete Petersen Excel Worksheet Functions 6 November 17th 04 10:15 PM


All times are GMT +1. The time now is 08:01 AM.

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

About Us

"It's about Microsoft Excel"