Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: VanguardLH Newsgroups: alt.computer Subject: Re: Excel problem Date: Mon, 29 Feb 2016 17:32:38 -0600 Organization: Usenet Elder Lines: 26 Sender: VanguardLH <> Message-ID: References: <2v1By.9722$GB1.4097@fx28.iad> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: individual.net rVqMbB0GgegUeW79msNwLwwhQ9pSoXQWtLcyLgGU8JCIsYEFIj Keywords: VanguardLH VLH811 Cancel-Lock: sha1:U/jQEeDF4Bz5jHH2jJ/bAEQO+Zw= User-Agent: 40tude_Dialog/2.0.15.41 Xref: csiph.com alt.computer:9821 Robert Baer wrote on 2016/02/29: > This used to work: > > vNam = Cells(2, 7).Text + "V" 'board voltage > pPath = "D:\ANALOG\HVREG\Boards\TITANTWO\TT_C\Jumpers\" > ActiveSheet.Shapes(1).Select > ' ERROR: Method of 'Active Printer' of object '_Application' failed > ' Application.ActivePrinter does not get set > Application.ActivePrinter = "Acrobat PDFWriter on FILE:" > ActiveWindow.SelectedSheets.PrintOut Copies:=1, Preview:=False, _ > ActivePrinter:="Acrobat PDFWriter on FILE:", PrintToFile:=True, _ > Collate:=False, PrToFileName:=pPath + vNam > > I does not matter what i set the default printer, the VB program > barfs the same way. > The Google groups > is useless; > nobody responds. > > Can this program problem be fixed? Newsgroups: microsoft.public.excel microsoft.public.excel.programming