V8.1.2 breaks my PStoPDF vba code

I had a VBA excel macro that printed a number of individual pages to ps files (1 page per ps file) then created a master ps file ...
/prun { /mysave save def
dup = flush
RunFile
clear cleardictstack
mysave restore
} def
(C:/File1.ps) prun
(C:/File2.ps) prun
It then called distiller to convert this master ps file into a pdf file. It use to work perfectly until we upgraded to 8.1.2. Then I got bitten by the 'restricted folder access' issue ... now I get a log file that contains ...
%%[ Warning: Empty job. No PDF file produced. ] %%
http://www.adobe.com/devnet/acrobat/downloads/Acrobat_SDK_readme.html says I can over come this by using the -F command line option or using the temp folder. I am starting distiller via vba, not using a command line (to the best of my knowledge).
Questions:
1) How can I start distiller using the -F option via VBA?
2) Can I add the -F option to a joboption file?
3) Which 'temp' file is the read me talking about (I tried it in the %temp% directory and it failed too)?
BTW: I'm running Vista.

BUMP.

Similar Messages

  • MAC VBA Code workbook close only works when breakpoints are set - fails when no breakpoints

    We have an Excel Product that we are trying to get to work on the Mac.  One of the worksheets displays a disclaimer, and if the user clicks on the I Don't Accept radio button and then clicks next, the workbook is supposed to close itself.  The
    code is quite simple:
    Public Sub HandleNextButton()
        Dim filename As String
        Dim opened_workbook As Workbook
        If AcceptsDisclaimerChecked Then
            FinishSetup
        Else
             ThisWorkbook.Saved = True ' Realize this is redundant based on false on the next line.
             ThisWorkbook.Close False
          End If
    End Sub
    All of our product sheets are protected by a block of code attached to the Workbook_BeforeClose event:
     Only allow a save if privileged, otherwise mark the workbook as saved
    Private Sub Workbook_BeforeClose(Cancel As Boolean)
        On Error Resume Next
        If ThisWorkbook.Saved Then Exit Sub
        ' If this user is not allowed to save, then cancel the save
        CM_Settings = LoadRegistrySettings
        If (CM_Settings And 4096) = 0 Then
            Me.Saved = True
        Else
           ' If the workbook is saveable, then turn on the image to protect the data.
           ' saving the workbook triggers the Workbook_BeforeSave which shows the veil
           Me.Save
        End If
    End Sub
    This works fine on the PC.  On the Mac, the workbook does not close.  I can see the button fire, and when it gets to the point where the workbook is to be closed, nothing happens.
     However, when I put a break point on the first line of the Workbook_BeforeClose, I can briefly see it reach the breakpoint (the line turns yellow), and then the workbook immediately closes.  A breakpoint anywhere in this routine causes the same
    behaviour, the close works correctly.  No breakpoint, no close.  Commenting out the Resume Next has no effect.  The only thing that will cause the work book to close, is to put a break point on on the On Error Resume Next in the code.  If
    the workbook.Saved=True is commented out, the Workbook_Close code will exit, at the first if statement, but the workbook will not close.
    Does anyone have any clues to this bizarre behaviour?
    Thanks, Neil
    Neil M. Johnson

    There is a difference between MAC and Windows based VBA code. I'd suggest asking MAC related questions on the
    Office for Mac  forum instead. The current forum is for Windows based developers.

  • VBA code to update Excel Data in sharePoint list

    hi Team,
    I have excel sheet created having data. I need to upload it in sharepoint List.
    Please provide me VBA code for the same.

    Please try this.
    Sub UpdateSpecificCells()
    'If nobody has the file checked out
    If Workbooks.CanCheckOut("http://excel-pc:43231/Shared Documents/ExcelList.xlsb") = True Then
    Application.DisplayAlerts = False
    'Open the file on the SharePoint server
    Workbooks.Open Filename:="http://excel-pc:43231/Shared Documents/ExcelList.xlsb", UpdateLinks:=xlUpdateLinksNever
    ActiveSheet.Cells(2, 7).Value = 100
    ActiveSheet.Cells(3, 7).Value = 200
    ActiveSheet.Cells(4, 7).Value = 300
    'Close the workbook
    Workbooks("ExcelList.xlsb").Save
    Workbooks("ExcelList.xlsb").Close
    End If
    End Sub
    I haven't used SharePoint in many years, and I can't test that code now, but I've used that before to update Excel files in SharePoint.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • The BEx Analyzer cannot generate VBA code due to the security settings

    Hello experts,
    when I try to open a query in BEx Analyser I get this error message for each Item of the Query:
    Diagnosis
    The BEx Analyzer cannot generate VBA code due to the security settings.
    System Response
    VBA code is not generated.
    Procedure
    Choose Tools -> Macro -> Security.
    On the Trusted Publishers tab page, select Trust access to Visual Basic project.
    Choose OK.
    Close the BEx Analyzer and continue working as before.
    Access to Visual Basic project is only needed when generating VBA code.
    This only takes place in design mode or when 3.x workbooks are upgraded.
    Of course I did exactly what was recommanded in the "procedure-section" of this error message. But BEx ist still not working!
    I use SAP NetWeaver 7.0 together with MS Excel 2007
    Thanks
    Axel

    Hello experts,
    I am an additional person interested in the way this issue was solved.
    I confirm that the issue is coming from the SP2 of Microsoft Office (I have another environnement without the SP2 and everything works well), and I am in a situation where I can't remove the update.
    Regards
    Guillaume P.
    EDIT :
    Solution found : I applied the bi710sp10p_1001-10004472.exe patch
    (downloaded via the download maanger : Support Packages and Patches - Entry by Application Group" SAP Frontend Components" BI ADDON FOR SAP GUI" BI 7.0 ADDON FOR SAP GUI 7.10)
    Edited by: GUILLAUME PETIAUX on Apr 13, 2010 10:29 AM

  • How to track changes of VBA Code in AO?

    Hi Community,
    is it possible to track changes of VBA code in Excel or AO. Is there any future for that?
    Does anybody have experience with that?
    Thanks
    Andreas

    Hi,
    there exist also no possiblity to get some Infos from the "Microsoft
    Office Alerts?
    Thanks Andreas

  • Extract image in PDF file - vba code in Excel

    Hi All,
    I am applying a solution for my company. We have some Front offices which receive customers' requests in paper form.
    We have one Back Office which is receiving the customers' original paper requests from Front Office via courier mail.
    To improve the efficency, I am trying to apply a solution which allow the Front Offices to scan the paper requests into PDF files.
    Those scanned files will be accessed by Back Office to process.
    Given the volume of the requests, it is impossible to open each file in the folder by clicking mouse.
    I have completed the tool (using Excel and vba ) which displays all of the requests (PDF files) as hyperlinks in Excel list.
    The requests are ranked with priority so that the Back Office people know which to process first.
    That solution works well.
    However, Back Office has just requested me to display certain fields in the PDF files as image in Excel's cells so that they can type the information to the system without having to open the PDF files.  The way that the images are displayed on Excel cells is an extraction of part of PDF page.
    I know that in Adobe Reader, I can use my mouse to select part of the area then copy to clipboard, so I hope that we can do the extraction programmatically.
    Could anyone can help me figure out how to implement above extraction solution in Excel vba?
    I am facing 2 concerns:
    1. Acrobat SDK:
    I don't know if my company purchased license of Acrobat SDK or not.  But when I open Excel VB editor, I can see in "Reference" menu the below items:
       + Adobe Acrobat Browser Control Type Library 1.0
       + Adobe Acrobat 9.0 Type Library
       + Acrobat Access 3.0 Type Library
    Are the above enough for my application?
    2. VBA code for extraction of part of PDF files:
    - What should be on the vba code for the extraction?  Which functions I should use?
    Thank you very much
    Cheers

    The functionality that you require is not available to VBA/COM - it is only exposed via C/C++.
    However, you could retrieve the ENTIRE page image to the clipboard and then use whatever VB/VBA methods you choose to grab a section of the image.
    Of course, this all assumes that Adobe Acrobat is installed on each person's computer that will be using the solution since Reader does not have the necessary APIs and Acrobat can't be installed on a server.

  • How to get active user data using vba code in excel

    Start with this script: http://community.spiceworks.com/scripts/show/1572-list-user-info-in-excel
    Then add an extra line to get the msDS-UserAccountDisabled attribute, or test for it in an If/Else block.

    Could you please help me to get only active user details from active directory using vba code.
    Any help would be immensely appreciated.
    Thanks in advance
    This topic first appeared in the Spiceworks Community

  • Download Data From Excel - VBA Code to SAP Using BDC

    Hi ,
    I am Sudhir Dure, working with Satyam Computers.
    I need help on the below query:
    I have an excel file which download data from Excel to SAP using RFC function & with the help of VBA interface.
    In this VBA code I have used BDC recording of SAP Transaction KE21N to post data into SAP.
    Now I am facing problem to find sub screen (tab page screen ) in SAP from VBA code .
    How to pass BDC Subscreen details from VBA code to SAP using below code?
    BDCTABLE.Rows.Add
    BDCTABLE.Cell(J, "PROGRAM") = PROGRAMNAME
    BDCTABLE.Cell(J, "DYNPRO") = "0200"
    BDCTABLE.Cell(J, "DYNBEGIN") = "X"
    BDCTABLE.Cell(J, "FNAM") = "BDC_OKCODE"
    BDCTABLE.Cell(J, "FVAL") = "=NEXT"
    Thanks,
    Sudhir Dure
    9972097464

    can anyone tell me how to get the PurchaseOrder number and item quantity from the Salesorder...? what are the fields here as given below..??
    For Each oItem In oSalesOrder.items
    wsTemplate.Range(cols(3) & Indexv).Value = oItem.material.material
    'wsTemplate.Range(cols(4) & Indexv).Value = ' I need item quantity here ????
    wsTemplate.Range(cols(1) & Indexv).Value = sapSoNumber
    wsTemplate.Range(cols(2) & Indexv).Value = ' I need purchase order number here>???
    Indexv = (Indexv + 1)
    Next
    reply fast. please .. thanks

  • MS Project and print automatically a planning per ressource with VBA code for instance

    Hello, i'm in MS project 2010 and i would like to print automatically a planning per ressource (PDF) with VBA code or other quick way.
    Somebody can help me with a simple macro VBA and how to install/use it?
    regards,
    M.

    Probably oyu need the loop:
    Dim Res as Resource
    for each Res in ActiveProject.Resources
        'Apply resource filter then print
    Next Res
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • VBA- Code behind button not working

    I am trying to add a vba code behind a close button to close a form but error keeps coming up. Each time i click the close button a Compile Error message: Sub or Function not Defined, keeps on coming up. 
    Code is below
    Private Sub cmdClose_Click()
    On Error GoTo Err_cmdClose_Click
    ' If Me.Dirty Then Me.Dirty = False
    DoCmd.Close
    Exit_cmdClose_Click:
        Exit Sub
    Err_cmdClose_Click
    MsgBox Err.Description
        Resume Exit_cmdClose_Click
    End Sub

    Sometimes the link between the button and its event gets broken. Select the button on the form in design view. Select the On Click event in the properties sheet. Then press F7. That usually fixes it.
    Bill Mosca
    www.thatlldoit.com
    http://tech.groups.yahoo.com/group/MS_Access_Professionals

  • Where is the forum for writing VBA code to control SharePoint 2013

    For Example, I want to use VBA code to create a SharePoint list and maintain it.  I can't find how to do that.  In Office 2003, we had the SharedWorkspace Object; but that's been deprecated.

    Current way to go is either CSOM or the SharePoint 2013 REST API. I'm not great at VBA, but I assume the REST API is the only option for you. Here you can find more info:
    http://msdn.microsoft.com/en-us/magazine/dn198245.aspx
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Access 2000 with VBA code doesn't work in Access 2013

    I have a database that was created in Access 2000 with lots of VBA code to pull data from SQL for reports. When I try to run a report in 2013, I get 'file not found".  When I go into debug, it appears the forms for the reports are not being found. 
    How can I fix this?

    Good Morning MariS2,
    Did you verify the change in the connection type?
    Did you check all your references which are changed for the new version of Access?
    Just takes a click to give thanks for a helpful post or answer.
    Please vote “Helpful” or Mark as “Answer” as appropriate.
    Chris Ward
    Microsoft Community Contributor 2012

  • VBA code not working in SEM-BPS 3.2

    We are currently running on BW 3.1 and SEM-BPS 3.2 environment. I am trying to create a screen in excel with VBA code doing validation on user input. For some reason the code works perfectly fine in standalone Excel. But when it comes to BPS, the code does not work. Is there any setting to invoke the code? Any help would be greatly appreciated.
    Thanks

    Bindu,
    Thanks for your reply. I checked in the layout builder and both the VBA Macro - SAPAfterDataPut and SAPBeforeDataGet are checked. Below is the code:
    Thanks again!
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("D1:D1000")) Is Nothing Then
        If Target.Value = "183998" Or Target.Value = "192999" Or Target.Value = "0000183998" Then
        ActiveSheet.Unprotect
        On Error Resume Next
        'Application.EnableEvents = False
        MsgBox "You cannot plan on TPIs 0000183998 Or 0000192999"
        Target.ClearContents
        'Application.EnableEvents = True
        ActiveSheet.Protect
      End If
    End If
    End Sub

  • How to sign VBA Code in AO and save it on BW-IP side.

    Does anybody know if it is possible to sign vba code in AO and save this as Document into BW-IP (to SAP NetWeaver)?
    If I try to sign the complete Workbook with a certificate I always get the prompt to convert the file into a Excel file, is it still possible than to save the Workbook to SAPNetWeaver? Anybody tried?

    Hi,
    I have done that many times. Create a button in the toolbar,say 'SAVE'. Write the code in the subroutine user command.For example :
    *&      Form  USER_COMMAND
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
            RS_SELFIELD TYPE SLIS_SELFIELD.
      DATA : REF_GRID TYPE REF TO CL_GUI_ALV_GRID.
      DATA: L_VALID TYPE C.
    *Code to reflect the changes done in the internal table
      IF REF_GRID IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            E_GRID = REF_GRID.
      ENDIF.
      IF NOT REF_GRID IS INITIAL.
        CALL METHOD REF_GRID->CHECK_CHANGED_DATA
          IMPORTING
            E_VALID = L_VALID.
      ENDIF.
      CASE SY-UCOMM.
        WHEN 'SAVE'.
        PERFORM BDC."Write all you BDC code in this subroutine
      ENDCASE.
    ENDFORM.
    Hope this will help.
    Thanks & Regards,
    Rock.

  • VBA code to connect Essbase from Excel

    Hi All,
    I need VBA code to connect & retrive the data from Essbase trough Excel sheet ....Please advise...
    Regards,
    Prabhas

    KVC wrote:
    As gleen advised install essbase excel addin before going to use below script
    create push button to trigger below script
    press Alt F11create module copy the below module and ur done
    Sub main()
    X = EssVConnect("[Book1.xls]Sheet1", "admin", "password", "EssbaseServerName", "Sample", "Basic")
    ‘Replace all the above parameters according to you environment.
    '("[Book1.xls]Sheet1" > Excel filename where this code is written followed by the sheetname
    'admin > username who has access to this application/database
    'EssbaseServerName > essbase analytic server name
    'Sample > application name
    'Basic > database name
    If X = 0 Then
    MsgBox ("Essbase connect is successful.")
    Else
    MsgBox ("Essbase connection failed.")
    End If
    X = EssVRetrieve("[Book1.xls]Sheet1", range("A1:F12"), 1)
    If X = 0 Then
    MsgBox ("Essbase retrieve is successful.")
    Else
    MsgBox ("Essbase retrieval failed.")
    End If
    for Disconnect
    X = EssVDisconnect(Empty)
    If X = 0 Then
    MsgBox ("Essbase disconnect is successful.")
    Else
    MsgBox ("Essbase disconnect failed.")
    End If
    End SubKVC ...Thanks for your Help...

Maybe you are looking for

  • How do I create a PDF document with multiple different page sizes?

    I scan tif images and can have a single document with Letter, Legal, Tabloid, and even full map plan sizes (36" X 24") all in one document.  I get the document all set, then do a: File, Print, choose Adobe PDF (running Acrobat XI Pro), but it convert

  • Creating Table "Row" headings

    Hello, I've found that we can customize column headers for a Jtable using:        table.getColumnModel().getColumn(0).setHeaderValue("New Column Name");I would like to know is there a way to do the same for rows? i.e. to have the first cell in each r

  • Pushing out a script to run via ARD

    I have the following script I am running into two issues with 1)  Instead of running it as root, can we run as a member of the admin group. 2)  Can this be pushed out via ARD? #!/bin/bash #This script needs to run as root ROOT_UID=0 if [[ $UID -ne $R

  • N8 became unresponsive after update

    Hi! I downloaded an update (Nokia Music) and since then my phone doesn't do ANYTHING. The buttons and the touchscreen are both unresponsive, the screen doesnt show it when I'm calling mine from another phone, and even the clock stopped on the screen

  • DeskJet 5550 won't print after installing new black ink cartridge.

    I recently got a new Dell computer with Windows Vista 64-bit OS.  Printer was working fine until I replaced the black ink cartridge.  It printed out the check page like normal after installing the cartridge but will not print anything else now.  Not