Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default PDF converter to xls

Hello all

i have this code that converts xls files to PDF, but

my problem is is i donot have "Acrobat Distiller on Ne00" virtua
driver (which should be referenced to from vba mode) and how t
reference to it from vba mode.......

any idea is highly appreciated

before running the code, first you should do the following:
put in A1 this formula
R1C1(which is A1) ="C:\Documents and Settings\nh\M
Documents\"&C1&".ps"

and put in C1 this formula
C1=Automated Excel-to-PDF
which CELL REFERENCE C1 CONTAINS THE STRIPPED FILE NAME
then the code is:
Sub PDFconverter()
Dim PSFileName As String
Application.ActivePrinter = "Acrobat Distiller on Ne00:"
Application.Goto Reference:="r1c1"
Let PSFileName = Application.ActiveCell SendKeys PSFileName
"{ENTER}", False
ActiveSheet.PageSetup.PrintArea = "$A$1:$I$17" ActiveSheet.PrintOu
, PrintToFile:=True PSFileName = Chr(34) & PSFileName
Chr(34)
End Sub

yours


--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default PDF converter to xls

Hi
you have toi change this line with your Adobe driver from your printer
dialog. You'll need a PDF Writer at least installed a printer on your
system

--
Regards
Frank Kabel
Frankfurt, Germany


Hello all

i have this code that converts xls files to PDF, but

my problem is is i donot have "Acrobat Distiller on Ne00" virtual
driver (which should be referenced to from vba mode) and how to
reference to it from vba mode.......

any idea is highly appreciated

before running the code, first you should do the following:
put in A1 this formula
R1C1(which is A1) ="C:\Documents and Settings\nh\My
Documents\"&C1&".ps"

and put in C1 this formula
C1=Automated Excel-to-PDF
which CELL REFERENCE C1 CONTAINS THE STRIPPED FILE NAME
then the code is:
Sub PDFconverter()
Dim PSFileName As String
Application.ActivePrinter = "Acrobat Distiller on Ne00:"
Application.Goto Reference:="r1c1"
Let PSFileName = Application.ActiveCell SendKeys PSFileName &
"{ENTER}", False
ActiveSheet.PageSetup.PrintArea = "$A$1:$I$17" ActiveSheet.PrintOut
, PrintToFile:=True PSFileName = Chr(34) & PSFileName &
Chr(34)
End Sub

yours
h


---
Message posted from http://www.ExcelForum.com/


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default PDF converter to xls

Look for WIN2PDF on google


--
....Patrick



"helmekki " a écrit dans le
message de ...
Hello all

i have this code that converts xls files to PDF, but

my problem is is i donot have "Acrobat Distiller on Ne00" virtual
driver (which should be referenced to from vba mode) and how to
reference to it from vba mode.......

any idea is highly appreciated

before running the code, first you should do the following:
put in A1 this formula
R1C1(which is A1) ="C:\Documents and Settings\nh\My
Documents\"&C1&".ps"

and put in C1 this formula
C1=Automated Excel-to-PDF
which CELL REFERENCE C1 CONTAINS THE STRIPPED FILE NAME
then the code is:
Sub PDFconverter()
Dim PSFileName As String
Application.ActivePrinter = "Acrobat Distiller on Ne00:"
Application.Goto Reference:="r1c1"
Let PSFileName = Application.ActiveCell SendKeys PSFileName &
"{ENTER}", False
ActiveSheet.PageSetup.PrintArea = "$A$1:$I$17" ActiveSheet.PrintOut
, PrintToFile:=True PSFileName = Chr(34) & PSFileName &
Chr(34)
End Sub

yours
h


---
Message posted from http://www.ExcelForum.com/



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
VBA Converter dodekathlon Excel Discussion (Misc queries) 1 August 19th 09 01:06 AM
VBA Converter ADD in Fareez Excel Discussion (Misc queries) 1 July 22nd 09 12:38 PM
EURO CONVERTER Amanda from Spain Excel Worksheet Functions 5 March 1st 07 12:23 AM
converter recipe type data New Users to Excel 4 April 5th 06 01:16 AM
PDF Converter AccessHelp Excel Discussion (Misc queries) 4 January 7th 06 02:41 PM


All times are GMT +1. The time now is 03:12 PM.

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"