Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Macro Toolbar programming

Status
Not open for further replies.

Enkrypted

Technical User
Sep 18, 2002
663
US
Is it possible to get a macro to be able to run a button on the toolbar? I have an addin installed, but it needs to be clicked on to run. I was wondering if it is possible to have it run via macro

Enkrypted
A+
 
It's a PDF conversion addin. Here is the link to it


It says it can support programming, but I want to make sure that I can have like a button that when clicked, will run the addin through a macro or other programming before I actually buy it.

Enkrypted
A+
 
Directly from your link

# Generating PDF from within all applications:
The conversion technology used generates PDF documents by choosing "File | Print..." within your applications.
# Buttons in Microsoft© Office (2000 or higher):
From Microsoft© Office 2000 on, Word, Excel and PowerPoint will display buttons for directly calling and configuring the CIB pdf brewer.
 
Yes...there are buttons on the toolbar. I know that. I want to make certain though it can be ran through a macro by clicking on a button in the worksheet, not the toolbar.

Enkrypted
A+
 
If you're simply trying to print to a PDF through a macro, have you tried recording a macro while you export a PDF?
 
It's for saving worksheets as a PDF. I've tried recording a macro but it doesn't work.

Enkrypted
A+
 
From my recorded macro:
Code:
Sub Macro1()
'
' Macro1 Macro
'

'
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
        "C:\Book2.pdf", Quality:= _
        xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
        OpenAfterPublish:=True
End Sub

That doesn't work?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top