XlFixedFormatType

G

Guest

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top