A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Programming
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Turning pages into PDF



 
 
Thread Tools Display Modes
  #11  
Old March 9th 07, 05:04 PM posted to microsoft.public.excel.programming
Gord Dibben
external usenet poster
 
Posts: 22,912
Default Turning pages into PDF


Dean

Not better, just an alternative.

Gord
On Thu, 8 Mar 2007 21:54:57 -0800, "Dean" > wrote:

>I'm not sure what this has that I don't already now have, so I'm not going
>to look further. It's sounds like this takes two steps rather than only one
>with the link provided on Ron DeBruin's to Ken Puhl's site for versions
>prior to 2007. If you know yours to be better, kindly let me know.
>
>Thanks, Gord!
>Dean
>
>"Gord Dibben" <gorddibbATshawDOTca> wrote in message
.. .
>> Dean
>>
>> I have had success with the free file downloads and instructions for use
>> here
>> at Dale Nurden's site.
>>
>> http://www.rcis.co.za/dale/info/pdfguide.htm
>>
>> Saves first to single *.ps file which is then converted to *.pdf
>>
>> Returns one PDF file from multiple sheets.
>>
>> See also David McRitchie's site for alternatives to the above.
>>
>> http://www.mvps.org/dmcritchie/excel/pdf.htm
>>
>>
>> Gord Dibben MS Excel MVP
>>
>> On Thu, 8 Mar 2007 12:34:41 -0800, "Dean" >
>> wrote:
>>
>>>I think this is the same link that Ron provided, for versions earlier than
>>>2007.
>>>
>>>"Jim Thomlinson" > wrote in
>>>message
>>>news >>>>I kinda like the one discussed here. It's free... it works without
>>>> advertising popups... and it has the ability be interact with code.
>>>>
>>>> http://www.excelguru.ca/node/21
>>>> --
>>>> HTH...
>>>>
>>>> Jim Thomlinson
>>>>
>>>>
>>>> "Dean" wrote:
>>>>
>>>>> I couldn't find a Microsoft group for PDFs so I am asking you folks
>>>>> here.
>>>>> I
>>>>> assume some of you, like me, like to take EXCEL pages and turn them
>>>>> into
>>>>> PDFs. I guess I need the PDF writer, or is it distiller, to do that -
>>>>> and
>>>>> I wonder where I can get a legitimate copy of it relatively cheaply and
>>>>> within a few days. Somewhere I saw something about
>>>>> edirectsoftware.com.
>>>>> Does anyone know if this is a good choice? Or any others to recommend?
>>>>>
>>>>> Thanks much!
>>>>> Dean
>>>>>
>>>>>
>>>>>
>>>

>>

>


Ads
  #12  
Old March 9th 07, 05:13 PM posted to microsoft.public.excel.programming
Dean[_8_]
external usenet poster
 
Posts: 407
Default Turning pages into PDF

OK, thanks much.

"Gord Dibben" <gorddibbATshawDOTca> wrote in message
...
>
> Dean
>
> Not better, just an alternative.
>
> Gord
> On Thu, 8 Mar 2007 21:54:57 -0800, "Dean" >
> wrote:
>
>>I'm not sure what this has that I don't already now have, so I'm not going
>>to look further. It's sounds like this takes two steps rather than only
>>one
>>with the link provided on Ron DeBruin's to Ken Puhl's site for versions
>>prior to 2007. If you know yours to be better, kindly let me know.
>>
>>Thanks, Gord!
>>Dean
>>
>>"Gord Dibben" <gorddibbATshawDOTca> wrote in message
. ..
>>> Dean
>>>
>>> I have had success with the free file downloads and instructions for use
>>> here
>>> at Dale Nurden's site.
>>>
>>> http://www.rcis.co.za/dale/info/pdfguide.htm
>>>
>>> Saves first to single *.ps file which is then converted to *.pdf
>>>
>>> Returns one PDF file from multiple sheets.
>>>
>>> See also David McRitchie's site for alternatives to the above.
>>>
>>> http://www.mvps.org/dmcritchie/excel/pdf.htm
>>>
>>>
>>> Gord Dibben MS Excel MVP
>>>
>>> On Thu, 8 Mar 2007 12:34:41 -0800, "Dean" >
>>> wrote:
>>>
>>>>I think this is the same link that Ron provided, for versions earlier
>>>>than
>>>>2007.
>>>>
>>>>"Jim Thomlinson" > wrote in
>>>>message
>>>>news >>>>>I kinda like the one discussed here. It's free... it works without
>>>>> advertising popups... and it has the ability be interact with code.
>>>>>
>>>>> http://www.excelguru.ca/node/21
>>>>> --
>>>>> HTH...
>>>>>
>>>>> Jim Thomlinson
>>>>>
>>>>>
>>>>> "Dean" wrote:
>>>>>
>>>>>> I couldn't find a Microsoft group for PDFs so I am asking you folks
>>>>>> here.
>>>>>> I
>>>>>> assume some of you, like me, like to take EXCEL pages and turn them
>>>>>> into
>>>>>> PDFs. I guess I need the PDF writer, or is it distiller, to do
>>>>>> hat -
>>>>>> and
>>>>>> I wonder where I can get a legitimate copy of it relatively cheaply
>>>>>> and
>>>>>> within a few days. Somewhere I saw something about
>>>>>> edirectsoftware.com.
>>>>>> Does anyone know if this is a good choice? Or any others to
>>>>>> recommend?
>>>>>>
>>>>>> Thanks much!
>>>>>> Dean
>>>>>>
>>>>>>
>>>>>>
>>>>
>>>

>>

>



  #13  
Old August 17th 07, 06:17 AM posted to microsoft.public.excel.programming
Dean[_8_]
external usenet poster
 
Posts: 407
Default Turning pages into PDF

I was using this PDF Creator all along and being very happy with it. But
now, I cannot highlight three adjacent worksheets and have it create a
3-page PDF file. I am sure I was able to do it before. As soon as I hit
print, it deselects two of the three and creates only a one page PDF. Does
anyone have any idea what my problem might be?

Dean

"Ron de Bruin" > wrote in message
...
> Hi Dean
>
> See
> http://www.rondebruin.nl/pdf.htm
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "Dean" > wrote in message
> ...
>>I couldn't find a Microsoft group for PDFs so I am asking you folks here.
>>I assume some of you, like me, like to take EXCEL pages and turn them into
>>PDFs. I guess I need the PDF writer, or is it distiller, to do that -
>>and I wonder where I can get a legitimate copy of it relatively cheaply
>>and within a few days. Somewhere I saw something about
>>edirectsoftware.com. Does anyone know if this is a good choice? Or any
>>others to recommend?
>>
>> Thanks much!
>> Dean



  #14  
Old September 19th 07, 06:35 AM posted to microsoft.public.excel.programming
Dean[_8_]
external usenet poster
 
Posts: 407
Default Turning pages into PDF

It seems that the problem is that I am now printing in a file that has the
following macro in it.

Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim wkSht As Worksheet
For Each wkSht In ThisWorkbook.Worksheets
wkSht.PageSetup.RightFooter = "&8Date : " & _
Format(Date, "dd-mmm-yy")
Next wkSht
End Sub

I assume this is what is causing it to deselect the multiple sheets I
highlight when I try to print with PDFCreator. Whether or not you agree,
can someone tell my why I would have been advised to put this macro in "this
Workbook" within my EXCEL file? I recall being told to do it from you folks
as a response to some special problem I was having, but I cannot recall, for
the life of me, what that problem might have been. I don't think I would
have added this macro strictly to automatically populate footers, which is
what it seems to do. Any ideas what I might have been trying to
accomplish?!

Thanks!
Dean


"Dean" > wrote in message
...
>I was using this PDF Creator all along and being very happy with it. But
>now, I cannot highlight three adjacent worksheets and have it create a
>3-page PDF file. I am sure I was able to do it before. As soon as I hit
>print, it deselects two of the three and creates only a one page PDF. Does
>anyone have any idea what my problem might be?
>
> Dean
>
> "Ron de Bruin" > wrote in message
> ...
>> Hi Dean
>>
>> See
>> http://www.rondebruin.nl/pdf.htm
>>
>> --
>>
>> Regards Ron de Bruin
>> http://www.rondebruin.nl/tips.htm
>>
>>
>> "Dean" > wrote in message
>> ...
>>>I couldn't find a Microsoft group for PDFs so I am asking you folks here.
>>>I assume some of you, like me, like to take EXCEL pages and turn them
>>>into PDFs. I guess I need the PDF writer, or is it distiller, to do
>>>hat - and I wonder where I can get a legitimate copy of it relatively
>>>cheaply and within a few days. Somewhere I saw something about
>>>edirectsoftware.com. Does anyone know if this is a good choice? Or any
>>>others to recommend?
>>>
>>> Thanks much!
>>> Dean

>
>



  #15  
Old September 21st 07, 03:40 AM posted to microsoft.public.excel.programming
Bill Renaud
external usenet poster
 
Posts: 417
Default Turning pages into PDF

From Excel Help:

"Microsoft Excel uses the ampersand to initiate codes for special
formatting in the headers and footers."

I believe the "&8" in your code sets the font size to 8 (can't verify
for sure).

The default behavior in a footer is for "&[Date]" to print as
"9/20/2007", or something similar.
The code you mention puts the current date in the right footer as "Date
: 20-Sep-2007".

If you still need this date in this format on your pages when they are
written to PDFCreator, then I would move this macro code to a standard
code module and connect the routine up to a commandbar button, to be
used just before printing to PDFCreator.

Alternatively, you could get somebody to revise the macro to leave the
selected sheets selected. Hopefully, somebody will answer this thread,
or you could post this as a new question.
--
Regards,
Bill Renaud



  #16  
Old September 21st 07, 06:55 PM posted to microsoft.public.excel.programming
Bill Renaud
external usenet poster
 
Posts: 417
Default Turning pages into PDF

Hi Dean,

I tested this on my machine (Excel 2000), and it works fine, when printing
to a regular printer. Something somewhere else is unselecting your
worksheets before being printed to the PDF file, as the For each statement
does not change the selection status of the worksheets.

Have you tried stepping through the code in your workbook to see where the
sheets are being deselected?

--
Regards,
Bill Renaud



  #17  
Old September 23rd 07, 02:03 AM posted to microsoft.public.excel.programming
Dean[_8_]
external usenet poster
 
Posts: 407
Default Turning pages into PDF

Actually, I notice that it happens sometimes just trying to select two
sheets and print them to a PDF manually. It seems to depend on either the
name of the sheets or something seemingly arbitrary like that. In other
words, I don't think it's the macro now. Sorry.

Thanks!
Dean

"Bill Renaud" > wrote in message
. ..
> Hi Dean,
>
> I tested this on my machine (Excel 2000), and it works fine, when printing
> to a regular printer. Something somewhere else is unselecting your
> worksheets before being printed to the PDF file, as the For each statement
> does not change the selection status of the worksheets.
>
> Have you tried stepping through the code in your workbook to see where the
> sheets are being deselected?
>
> --
> Regards,
> Bill Renaud
>
>
>



  #18  
Old September 23rd 07, 05:08 AM posted to microsoft.public.excel.programming
Bill Renaud
external usenet poster
 
Posts: 417
Default Turning pages into PDF

Do you have any event handlers attached to the worksheets in the workbook?
Right click on each sheet tab, then choose "View Code" from the context
menu. Any code window that is displayed might have the line "Option
Explicit" at the top, but should not have any routines in it (like "Private
Sub Worksheet_Activate", "Private Sub Worksheet_Deactivate", etc.

If they do (have any event handlers like those I mentioned), then those
could be the culprit and might have to be disabled or removed. Click the
"Design Mode" button on the Visual Basic toolbar so that the button remains
depressed.
--
Regards,
Bill Renaud



  #19  
Old September 23rd 07, 05:29 AM posted to microsoft.public.excel.programming
Dean[_8_]
external usenet poster
 
Posts: 407
Default Turning pages into PDF

No, nothing there. This file is a grocery list file and in fact I created a
couple of tabs to test it in a very simple file.

Two of the four sheets save to PDF together. But in the case of one of them
with a 3rd tab instead, it asks me for two file names and creates two
one-page files.

Any idea why? The whole thing almost seems random!

Thanks!
Dean


"Bill Renaud" > wrote in message
. ..
> Do you have any event handlers attached to the worksheets in the workbook?
> Right click on each sheet tab, then choose "View Code" from the context
> menu. Any code window that is displayed might have the line "Option
> Explicit" at the top, but should not have any routines in it (like
> "Private
> Sub Worksheet_Activate", "Private Sub Worksheet_Deactivate", etc.
>
> If they do (have any event handlers like those I mentioned), then those
> could be the culprit and might have to be disabled or removed. Click the
> "Design Mode" button on the Visual Basic toolbar so that the button
> remains
> depressed.
> --
> Regards,
> Bill Renaud
>
>
>



  #20  
Old September 23rd 07, 05:32 AM posted to microsoft.public.excel.programming
Dean[_8_]
external usenet poster
 
Posts: 407
Default Turning pages into PDF

Oh and, by the way, in these cases it does not deselect the tab. Also, I
notice that if I try to print the problematic paid to my printer, it prints
them both. It seems to be problem with the PDF Creator program interface.

D


"Dean" > wrote in message
...
> No, nothing there. This file is a grocery list file and in fact I created
> a couple of tabs to test it in a very simple file.
>
> Two of the four sheets save to PDF together. But in the case of one of
> them with a 3rd tab instead, it asks me for two file names and creates two
> one-page files.
>
> Any idea why? The whole thing almost seems random!
>
> Thanks!
> Dean
>
>
> "Bill Renaud" > wrote in message
> . ..
>> Do you have any event handlers attached to the worksheets in the
>> workbook?
>> Right click on each sheet tab, then choose "View Code" from the context
>> menu. Any code window that is displayed might have the line "Option
>> Explicit" at the top, but should not have any routines in it (like
>> "Private
>> Sub Worksheet_Activate", "Private Sub Worksheet_Deactivate", etc.
>>
>> If they do (have any event handlers like those I mentioned), then those
>> could be the culprit and might have to be disabled or removed. Click the
>> "Design Mode" button on the Visual Basic toolbar so that the button
>> remains
>> depressed.
>> --
>> Regards,
>> Bill Renaud
>>
>>
>>

>
>



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Number of pages in worksheet doesn't match Print Preview pages delru Excel Discussion (Misc queries) 2 May 10th 10 10:08 PM
How do I delete pages in Excel? Keeps printing blank pages at end. Jojobean Charts and Charting in Excel 1 May 31st 07 07:37 AM
Need Help -- Baseball stats in excel only has 23 pages--Need to addmore pages.. GE Cathey Setting up and Configuration of Excel 7 May 17th 07 09:42 PM
Need Help -- Baseball stats in excel only has 23 pages--Need to addmore pages... GE Cathey Excel Worksheet Functions 1 May 16th 07 08:17 PM
How do I delete pages from an Excell template of mutiple pages pulcom123 Excel Discussion (Misc queries) 2 December 30th 05 04:41 PM


All times are GMT +1. The time now is 11:19 PM.


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