Hello there,
we created a very cool excel sheet here at the office for the boss, with several info he needs. We want to create a pdf from this excel, but wait! it has to be via de Pdf Button at the menu and not the "Adobe PDF" Printer, because the document contains links in the worksheets that have to keep on working as pdf.
In Excel 2003 i managed to get to work it like this:
But the Excel has to work in 2007 and when i do something like the following:Sub Botón1_AlHacerClic() Dim cbar As CommandBar Dim i For Each cbar In Application.CommandBars If cbar.Type = msoBarTypeNormal Then If cbar.Name = "Acrobat PDFMaker 9.0" Then Sheets(Array("Hoja2", "Hoja3")).Select cbar.Controls(1).Execute End If End If Next cbar End Sub
in 2003 I find "Acrobat*" but in 2007 nothing shows up.Sub Botón2_AlHacerClic() Dim cbar As CommandBar Dim i For Each cbar In Application.CommandBars Range("A1").Offset(i,0).value = cbar.name i = i + 1 Next cbar End Sub
Can somebody help me with this?
Thanks in advance.
You don't ned Adobe in Excel 2007, there's a PDF addin that you can download
Excel 2007 does not support ToolBars, the buttons will be in the addins tab
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
Hi, thanks to the advice. But we are not allowed to install any software at the office, so sadly this does not work for me.
Christian
Have you found the menu under Addins?
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
nope...........
It should be there, without seeing the workbook I can't help further
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
i dont see add in the 2007 menu.
The addin tab should show if you have any addins installed. Try just activating the Analysis ToolPak addin which is usually installed automatically, see this
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
Hello,
ok i installd the "Addon" but to be honest i don't find any diference in the worksheet.
i.e: No Addin Tab
If you have SP2 installed for Office 2007, then the ability to save as PDF is built-in and does not require an addin. You just need to use the Exportasfixedformat method:
for example (from the Help).ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF FileName:=“sales.pdf” Quality:=xlQualityStandard DisplayFileAfterPublish:=True
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks