Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Dynamically select a Printer

Is it possible to create a drop down/combo box to select
all of the available printers on your system?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Dynamically select a Printer

Hello
Try:
Application.Dialogs(xlDialogPrinterSetup).Show
HTH
Cordially
Pascal

"Bill Agee" a écrit dans le message de
link.net...
Is it possible to create a drop down/combo box to select
all of the available printers on your system?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Dynamically select a Printer

Tom,

I recently 'discovered' that redim preserve can be used
to redim a 1 dimensional array from 0based to 1based..
and vice versa

Sub foo()
Dim v
'fill it 0based assumes option base 0
v = Array(1, 2, 3)
'make it 1based
ReDim Preserve v(1 To UBound(v) + 1)
Stop
ReDim Preserve v(0 To UBound(v) - 1)
Stop
End Sub



keepITcool

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


"Tom Ogilvy" wrote :

'Return 0 based for compatibility
ReDim v0(0 To UBound(v1) - 1)
For i = 0 To UBound(v0): v0(i) = v1(i + 1): Next

Split = v0


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
No printer select in excel jj Excel Discussion (Misc queries) 1 March 25th 05 11:34 AM
how to select cells dynamically in excel macro? Excel user Excel Programming 1 November 1st 04 05:28 PM
using vb to select which printer to use HCS Excel Programming 1 October 21st 04 12:58 PM
select printer Mark[_17_] Excel Programming 4 February 11th 04 02:28 PM


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