Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.computer > #9818 > unrolled thread
| Started by | Robert Baer <robertbaer@localnet.com> |
|---|---|
| First post | 2016-02-29 12:04 -0800 |
| Last post | 2016-03-02 08:59 -0800 |
| Articles | 5 — 3 participants |
Back to article view | Back to alt.computer
Excel problem Robert Baer <robertbaer@localnet.com> - 2016-02-29 12:04 -0800
Re: Excel problem Paul <nospam@needed.com> - 2016-02-29 16:20 -0500
Re: Excel problem Robert Baer <robertbaer@localnet.com> - 2016-03-02 08:58 -0800
Re: Excel problem VanguardLH <V@nguard.LH> - 2016-02-29 17:32 -0600
Re: Excel problem Robert Baer <robertbaer@localnet.com> - 2016-03-02 08:59 -0800
| From | Robert Baer <robertbaer@localnet.com> |
|---|---|
| Date | 2016-02-29 12:04 -0800 |
| Subject | Excel problem |
| Message-ID | <2v1By.9722$GB1.4097@fx28.iad> |
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
<https://groups.google.com/forum/#!forum/excel-macros> is useless;
nobody responds.
Can this program problem be fixed?
[toc] | [next] | [standalone]
| From | Paul <nospam@needed.com> |
|---|---|
| Date | 2016-02-29 16:20 -0500 |
| Message-ID | <nb2cgb$5or$1@dont-email.me> |
| In reply to | #9818 |
Robert Baer wrote:
> 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
> <https://groups.google.com/forum/#!forum/excel-macros> is useless;
> nobody responds.
>
> Can this program problem be fixed?
Did you try a Google search on:
Application.ActivePrinter = "Acrobat
That may bring up instances of the attempts
others have made to program it.
http://answers.microsoft.com/en-us/office/forum/office_2010-word/printout-to-pdf-but-pdf-corrupt/3cd5be2b-f6c5-4d23-82af-87a7ea8a1d6f?auth=1
It looks to me, like a typical link to such a pseudo device,
just uses its "given name", without the "on FILE" part
added to the end.
If you could get your macro to:
1) Put up a printer selection dialog box.
Then, you click the Acrobat one.
2) Back in the script, pop up a dialog box with
the string that came from the selection.
3) Now, you know what to call it.
Paul
[toc] | [prev] | [next] | [standalone]
| From | Robert Baer <robertbaer@localnet.com> |
|---|---|
| Date | 2016-03-02 08:58 -0800 |
| Message-ID | <3ZEBy.31492$2B3.19431@fx14.iad> |
| In reply to | #9820 |
Paul wrote: > Application.ActivePrinter = "Acrobat That BabyBird (Goo Gull) search gives scads of info; will take hours to try the ideas, but that is a good start. Thanks.
[toc] | [prev] | [next] | [standalone]
| From | VanguardLH <V@nguard.LH> |
|---|---|
| Date | 2016-02-29 17:32 -0600 |
| Message-ID | <djk2omFr504U1@mid.individual.net> |
| In reply to | #9818 |
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 > <https://groups.google.com/forum/#!forum/excel-macros> is useless; > nobody responds. > > Can this program problem be fixed? Newsgroups: microsoft.public.excel microsoft.public.excel.programming
[toc] | [prev] | [next] | [standalone]
| From | Robert Baer <robertbaer@localnet.com> |
|---|---|
| Date | 2016-03-02 08:59 -0800 |
| Message-ID | <MZEBy.31493$2B3.22356@fx14.iad> |
| In reply to | #9821 |
VanguardLH wrote: > 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 >> <https://groups.google.com/forum/#!forum/excel-macros> is useless; >> nobody responds. >> >> Can this program problem be fixed? > > Newsgroups: > microsoft.public.excel > microsoft.public.excel.programming > Thanks.
[toc] | [prev] | [standalone]
Back to top | Article view | alt.computer
csiph-web