#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default XlFixedFormatType

I would like to use XlFixedFormatType to export an Excel 2007 to a pdf file
format with a variable file name from a cell in a macro. I have used this:

Sub SaveWithVariableFromCell()
Dim SaveName As String
SaveName = ActiveSheet.Range("b8").Text
ActiveWorkbook.SaveAs Filename:="D:\pat's delivery\invoice\" & _
SaveName & ".xls", FileFormat _
:=xlExcel8, Password:="", WriteResPassword:="",
ReadOnlyRecommended:= _
False, CreateBackup:=False
and it works as a excel file.

Is this posible?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default XlFixedFormatType

See this page William
http://www.rondebruin.nl/pdf.htm

You can point FilenameStr to a cell value


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"William Jones" wrote in message ...
I would like to use XlFixedFormatType to export an Excel 2007 to a pdf file
format with a variable file name from a cell in a macro. I have used this:

Sub SaveWithVariableFromCell()
Dim SaveName As String
SaveName = ActiveSheet.Range("b8").Text
ActiveWorkbook.SaveAs Filename:="D:\pat's delivery\invoice\" & _
SaveName & ".xls", FileFormat _
:=xlExcel8, Password:="", WriteResPassword:="",
ReadOnlyRecommended:= _
False, CreateBackup:=False
and it works as a excel file.

Is this posible?


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



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