+ Reply to Thread
Results 1 to 10 of 10

Thread: 2007 menu access via vba - acrobat

  1. #1
    Registered User
    Join Date
    01-21-2011
    Location
    Bogota
    MS-Off Ver
    Excel 2003
    Posts
    5

    2007 menu access via vba - acrobat

    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:


    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
    But the Excel has to work in 2007 and when i do something like the following:

    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
    in 2003 I find "Acrobat*" but in 2007 nothing shows up.

    Can somebody help me with this?

    Thanks in advance.

  2. #2
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,640

    Re: 2007 menu access via vba - acrobat

    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)

  3. #3
    Registered User
    Join Date
    01-21-2011
    Location
    Bogota
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: 2007 menu access via vba - acrobat

    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

  4. #4
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,640

    Re: 2007 menu access via vba - acrobat

    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)

  5. #5
    Registered User
    Join Date
    01-21-2011
    Location
    Bogota
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: 2007 menu access via vba - acrobat

    nope...........

  6. #6
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,640

    Re: 2007 menu access via vba - acrobat

    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)

  7. #7
    Registered User
    Join Date
    01-21-2011
    Location
    Bogota
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: 2007 menu access via vba - acrobat

    i dont see add in the 2007 menu.

  8. #8
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,640

    Re: 2007 menu access via vba - acrobat

    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)

  9. #9
    Registered User
    Join Date
    01-21-2011
    Location
    Bogota
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: 2007 menu access via vba - acrobat

    Hello,

    ok i installd the "Addon" but to be honest i don't find any diference in the worksheet.

    i.e: No Addin Tab

  10. #10
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    Apparently I can't say
    MS-Off Ver
    Apparently I can't say
    Posts
    8,274

    Re: 2007 menu access via vba - acrobat

    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:
    ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF FileName:=“sales.pdf” Quality:=xlQualityStandard DisplayFileAfterPublish:=True
    for example (from the Help).

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0