Open Multiple PDFs from within excel using VBA

Hi,
I'm using excel 2010 and would like to open pdfs based on filenames I have listed in excel.
I attached a little of my code below which gives an idea of what I'm doing.
First question:
Is there a way to open mutiple files so that they are in one "instance" of adobe?
The way this currently works, is it opens up a whole new window for each file which can make desktop very cluttered.
Second question:
Our pdfs are actually in Sharepoint and so what I am first doing, is converting the URL to point to a mapped directory of the Sharepoint Site.
For this to work, the user must first map the sharepoint directory to a specific drive letter.
I'm wondering if there's a way to pass an actual URL via a shell command so I can skip the mapped drive bit?  When I try it, it doesn't open the file.
Thanks!
My current vba:
'sFileName = full URL of the file in sharepoint
     'Replace URL with Mapped Directory
        sFileName = Replace(sFileName, "http://aamteams.alv.autoliv.int/sites/alvgmbu/", "A:\")
     'Replace slashes in URL
        sFileName = Replace(sFileName, "/", "\")
     'Test if file exists before opening so adobe doesn't hang up on opening
        If Dir(sFileName) = "" Then
            A81_Try_Opening_In_Adobe = False
            Exit Function
        End If
        l_strProg = GetDefaultProgram(sFileName)
        'Execute function to open PDF
        Shell l_strProg & " " & sFileName, vbNormalFocus

Hi Test,
We would like to open directly in adobe for the following reasons:
1.  The users like opening our pdfs in adobe over browsers by a large margin.
2.  If we use a mapped drive and adobe, you can see the filenames in the start bar which is important when you have multiple files.
    If you open in browser (like we do today), you only see the left side of URL
    Left side of URL is always the same so it does no good to see what file your in.
3.  We have had issues where sometimes the pdfs open "blank" until I refresh the browser.
4.  We are also looking for a way to make a local cache of most common files for faster loads.
But maybe I will give shell execute a try if it can find a local copy first in the code.
Then open in browser as last resort.
Using either shell or shell execute, is it possible to open multiple adobe files in the same instance or will we always have to get one instance for every pdf?
Thanks for the help!

Similar Messages

  • I have a problem creating a pdf from within Firefox using the print to function.

    I have a problem creating a PDF from within Firefox. I get an error message stating that Adobe PDF creation cannot continue because Acrobat is not activated. Acrobat Pro then opens. If it try to create the PDF again, the same problem. I have FF ver 3.6.10 and Acrobat Pro 8 (from Acrobat CS3).

    This is an Apple user forum, no-one from Apple is here.

  • Cannot open another PDF from within a PDF RDR 9.1

    Hi, all. When I or one of our users tries to open a PDF from a "Table of Contents" PDF , i.e.
    Table of Contents for Job CD30A9
    Guide
    42ACC845.pdf
    42ACC84D.pdf
    42ACC84E.pdf
    42ACC84C.pdf
    The guide opens but not the other documents. The other documents open fine if clicked on individually. They are password protected (all but guide.pdf).
    This is what I get with Process Monitor:
    1:52:45.5500328 PM AcroRd32.exe 2372 RegOpenKey HKLM\Software\Adobe\Acrobat Reader\9.0\Installer SUCCESS Desired Access: Read
    1:52:45.5500859 PM AcroRd32.exe 2372 RegQueryValue HKLM\SOFTWARE\Adobe\Acrobat Reader\9.0\Installer\VersionMax SUCCESS Type: REG_DWORD, Length: 4, Data: 589825
    1:52:45.5501239 PM AcroRd32.exe 2372 RegQueryValue HKLM\SOFTWARE\Adobe\Acrobat Reader\9.0\Installer\VersionMin SUCCESS Type: REG_DWORD, Length: 4, Data: 1
    1:52:45.5501694 PM AcroRd32.exe 2372 RegCloseKey HKLM\SOFTWARE\Adobe\Acrobat Reader\9.0\Installer SUCCESS
    Any ideas?

    Can you insert the PDF file in the Word document in another format to make it clickable in the newly converted PDF?

  • How can I launch or open a pdf from the Web using Reader X?

    Before I upgraded to Adobe Reader X, I could click on a file to download from the web and it would give me the option to Open, Save or Cancel. Now that I have upgraded, I only have the option to Save or Cancel. Often I would rather Open the document to see it before deciding to save it or not. Is there a Setting or Preference somewhere that will bring back the Open option? btw, I'm using Windows 7 as my OS.

    ImagineThat:
    Welcome to the Apple Discussions. There is a 3rd party application, pdf-RecoverPro, that will let you lock the file to printing, changing, etc. You set two passwords, one to let the user view it and one to unlock the restricted features. Just provide the first password and send the file. You can try the demo version. It just saves one page in demo mode.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • XI Pro, Excel 2013, Win 8.1: Opening a pdf embedeed in Excel starts Acrobat in Maximized Window

    I am embedding (Insert/Object/Adobe Acrobat Document) pdf's in an Excel spreadsheet.
    I'm using the option to show the pdf as an icon.
    That all works fine.
    When I double click the icon Acrobat is starting in a maximized Windows window.
    It is filling up my entire monitor with Acrobat.
    Normally when I start Acrobat it takes the window shape from the last time I closed it.
    Is there any way to control the Window size when opening a pdf from inside Excel?
    Thanks.

    Click to Run according to Microsoft: 
    https://technet.microsoft.com/en-us/library/jj219427.aspx
    "Click-to-Run is a Microsoft streaming and virtualization technology that reduces the time that is required to install Office and helps you run multiple versions of Office on the same computer. The streaming technology enables you to download and begin to use an Office product before the whole product is installed on your computer. The virtualization technology provides an isolated environment for Office to run on your computer. This isolated environment allows you to run the latest version of Office side-by-side with an earlier version of Office that is already installed on your computer."

  • Creating multiple PDFs from an xml form

    Hello--
    I am a LiveCycle Designer beginner, so please bear with me.
    I'm hoping to automate the creation of multiple PDFs from within a LiveCycle XML form I created.  We have a database with vendor contact information. Each vendor could have multiple records within our database (currently they range from 2-60). We currently send to a pointperson at each vendor an Excel spreadsheet that contains all the records associated with that vendor. That person then modifies, adds and deletes the records in that spreadsheet. We then input those updates into our database.  
    We recognize that this is an antiquated form of contact management, and want to improve. Of course, the challenge is that we do not have our own server to use, and we are not able to use any third party service that costs anything. Since we already have LiveCycle Designer, I'm hoping XML forms can make things easier for our administrators. I really hope there is a scriptable solution for this. 
    Here is what I've done (much of it to learn how LiveCycle Designer works).
    I created an XDP with all the appropriate fields. 
    I also created separate XML files for each vendor.
    I was able to create individual PDFs when I associate the vendor-specific XML file to the XDP using the Locate Data File field in the Defaults tab of the Form Properties.
    While this works, I essentially have just done the same amount of work as our current solution. Nonetheless, since LiveCycle is scriptable, I'm hoping that I can automate a number of these tasks. Is it possible to automate from within Designer, the creation of multiple PDFs—one for each vendor—using the same XDP form?  Do I need to make the XDP form a TDS file? Is this even the right approach? Is there a way to connect to the database and filter out by vendor the information I need? 
    I apologize if this is all over the place. Any and all advice would be most appreciated!!!

    The Split command also allows you to do this with a few more options like contol of the file naming and number of pages. Here is a quick tip on how to do this if you're interested.
    [Click to watch on the AdobeTV site]

  • What is the best process for creating, opening, editing, etc PDFs from within Visual Studio 2008?

    I am the project manager on a web-based application that will need to:
    Create, open, edit, save, etc PDFs from within a Visual Studio 2008 web application (Visual Basic).
    Populate PDFs from SQL server 2010 database.
    Allow users to use PDF editing tools from within the website.
    BTW, the application is being written in Visual Basic.
    Will the SDK allow us to do this? What licenses do we need to purchase?
    Are there 3rd party plugins that make doing these things much faster and simpler?
    Any input is GREATLY appreciated!!!
    Sincerely,
    Mike

    I don't think Acrobat, or the Acrobat SDK can help you. Acrobat cannot be run on a server.

  • I would like to execute an existing BW report from Excel (using VBA).

    I would like to execute an existing BW report from Excel (using VBA) and download the results into Excel.  I understand that there is an Excel Add-In which (I believe) should allow me to do this.  I am an experienced user of Excel / VBA but I have virtually no experience with SAP.  If someone could point me to any source of information or specific instructions I would be extremely appreciative.  I've done multiple searches on the internet but everything I find seems to assume more knowledge of SAP and SAP acronyms than I possess. 

    Paul,
    If your company (or your client's company) has an SAP license (I assume this is the case, since there would be no other reason for you to want to access an SAP system using Excel), there is a person in your company who can request an ID for you.  It is called a SAP Service Marketplace userid, more commonly called an 'S' number.  This person in your company is usually a Basis Administrator.  Go to your SAP Basis team and ask them for access to Service Marketplace.
    The common solution for your Excel analysis problem is to install the Bex Analyzer on your PC.  You will need these same guys (Basis Team) to help you with getting the required SAP access, and to install the associated SAP software onto your PC.
    In the meantime, here is some bedtime reading for you.
    Analysis & Reporting: BEx Analyzer - Business Intelligence - SAP Library
    Best Regards,
    DB49

  • Adobe Javascript from within Excel VBA

    I have some limited experience with Excel VBA and Adobe Javascript separately, but have never tried to put them together. I am rather baffled by the use of “DoJavaScript” from within Excel VBA. I have a number of Illustrator JavaScripts that do various tasks (mostly measure and set properties on illustrator drawing objects to determine some geometric metrics). I wanted to run these scripts from within Excel VBA (they run without problem when directly called into Illustrator). My hope was to pass a few real numbers from VBA into the JavaScript before one ran to set some run parameters and then get a few real numbers back out from the JavaScript back into VBA. I cannot seem to get even the simple DoJavaScript command given in the Adobe VBscript reference to run. Reading other posts that seem somewhat related it is not clear if I am doing something very simple wrong, or if my understanding of the use of the DoJavaScript command is misguided. Anyone able to shed some light on this?
    My last try was this simple test...almost directly from the Adobe reference:
    Private Sub SetScale_CommandButton1_Click()
    Set appRef = CreateObject("Illustrator.Application")
    Set myNumberOfDocuments = appRef.DoJavaScript("documents.length;")
    MsgBox myNumberOfDocuments
    End Sub
    I am really hoping to be able to run javascripts that are a few hundred lines long....but if I cannot even get something simple to go then I am about to give up on it.
    Thanks for any suggestions

    Carlos;
    I am most grateful! ... I was stumped on that for hours, thought I had tried about every combinatory possible, and was about to give up on getting the DoJavaScript  method to work. There are few examples of this on the web, so for anyone else who would like a bit more verbose  example I post below is a simple VBA sub-routine that uses a javascript function to return the number of selected objects in the current active illustrator document and displays that number in a message box in excel. Simple example, but it was the sort if thing I was looking for all over the web before Carlos’ help.
    Cheers,
    Brian
    Private Sub ObjectNum()
    Set appRef = CreateObject("Illustrator.Application")
          tmp$ = "function myfunction() {"
          tmp$ = tmp$ + "var idoc = app.activeDocument;"
          tmp$ = tmp$ + "var sel = idoc.selection;"
          tmp$ = tmp$ + "var numobj = sel.length;"
          tmp$ = tmp$ + "return numobj;};"
          tmp$ = tmp$ + "myfunction();"
    numobj = appRef.DoJavaScript(tmp$)
    MsgBox numobj
    End Sub

  • Open Multiple PDF files from Production order/Routing

    Hi Everyone
    We are in ECC 6.0 environment. We have a scenario where multiple documents were attached to single operation and also at multiple operations. But when I was trying to open these PDF documents, only the last file was getting opened and closing the previous file. How can I open multiple PDF files at one time from Production order or Routing?
    Any help is appreciated.
    Regards
    Prasad

    Hi Prasad,
    from DMS standard I regret but such a functionality is not available. In the standard originals can be opened only one after another.
    I think for realising this functionality an individual modificatoin is necessary.
    Best regards,
    Christoph

  • Adobe v9 on W7 and office 2007. cannot create PDF from MS word using Adobe. But can from Excel, PPT

    Adobe v9 on W7 and office 2007. cannot create PDF from MS word using Adobe. But can from Excel, PPT and other MS office apps. Reinslalled Adobe, updated Office, and Adobe no help! Also I can create a pdf from the MS Word and it is using the Adobe 9. So one would think that's good. No it isn't when you need to combine different files to one big PDF document. Any suggetions? Thank you

    Yes, I’m saying that I can in WORD use “Save As ADOBE pdf” but cannot in ADOBE create a pdf file from a WORD (.doc or .docx) document. While I can from other MS Office apps like Excel and PowerPoint.
    I understand I can use “work around” and save doc in WORD as pdf then compile all files needed (xml, ppt, pdf) in the ADOBE v9. to one big pdf document. But that is not the point of this post.  
    Jarda @ PC+NET Solutions
    Mobile 613-532-7023
    Office  613-385-1268
    <http://www.pcplusnet.net/> www.pcplusnet.net

  • How to open a pdf from pdf target with page no using javascript

    Hi
    How to open a pdf from pdf target with page no using javascript
    Thanks in Advance.

    Hello,
    <p>Web.show_document calling .htm files saved on disk.....</p>
    Francois

  • Open multiple PDFs in Photoshop at specific size for use with Actions

    I am having a bit of a roadblock with batch Automate in Photoshop. I'd like to open multiple PDFs at 630p x 630p, 72 dpi in greyscale. I have 2000 files to do this on. If files are already open, the rest of my action works, does a few things, then saves for web as PNG. It is just the open which is not working. It tries to give all files the same filename. Taking the filename out of the Action is not an option. Scan of msg boards say that this feature stopped working around CS3. Any ideas? Much appreciated.

    Open opens images the same size and resolution they are saved. If you want the images to be a particular size you need to do that in the action.
    If you download my crafting actions package.  You will find the there are over a dozen scripts I wrote to be used with in action.  One is a plugin script that would be particularly helpful to you to do the resize you want to do.  The first three steps would be Step 1 menu File>Automate>AspectRatioSelection....  You would set in a 1 to  1   Aspect ratio. Centered, rectangle. replace, selection and 0 feather. In its dialog.  Those settings will be recorded into the Actions step. Step 2 menu Image Crop. that will make you image square. Step 3 menu File>Automate>Fit Image...  In the Fit image dialog you would set 630 in the width and height fields.  These settings will be recorded into the actions step.    When the action is played no dialog will be displayed. The recorded settings will be used.
    Crafting Actions Package UPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    More then a dozen Scripts for use in actions
    Example
    Download

  • Having issues Creating a PDF from an Excel file

    When creating PDFs from an Excel file using the Adobe PDF printer, I sometimes run into an issue where the PDF ends up shrinking what's on the document and distorting the image. I have examined all Print Settings and can't find a difference between any of the margin settings, paper size, etc. Once I go to print to Adobe PDF, it just changes the way the whole document looks and is spaced.
    To work around the issue, I use Microsoft's built in Save As PDF feature, but that's only works some of the time. I would like to use the Acrobat software so that I can also edit the document immediately without having to re-open it.

    Be sure Adobe PDF is selected as the printer in the print menu. Then do a print preview. It it looks wrong then, it is likely an Excel format issue.

  • Create multiple PDFs from multiple files

    Hi everyone
    I'm trying to use the "Create multiple PDFs from multiple files" function in Acrobat 9 Pro (version 9.4.6) to create about 100 PDFs from InDesign CS5 files. Theoretically this would do the trick for my purpose. BUT: When running the function, it does not use the CS5 InDesign (version 7.0.3), but tries to open the files with InDesign CS3. Of course this does not work. We, as a professional working agency, have installed CS3, CS4 and CS5. Even with making the InDesign CS3 .app invisible an pushing it into the garbage bin during the process did not work. Acrobat still wants to access InDesign CS3. It is not possible to downgrade the files to CS3 files, for there are special (i.e. interactive) functions which only work in CS5. It would be more work than creating the PDFs manually, anyways.
    Does anyone have similar issues? Any ideas how to solve the problem?
    Thanks in advance.
    Thinka

    OK, cool, I found one, which seems to work just fine.
    http://www.kahrel.plus.com/indesign/batch_convert_cs3.html
    found here:
    http://forums.adobe.com/message/3712434#3712434
    Thanks for the hint!

Maybe you are looking for

  • Ideas for a Hard Disk App? 1 problem

    Ok here is the deal i want to use my phone as a USB drive because i have some space left but all of the Applications out there use wireless this is not a problem at home to place the files on the phone but at school we are not given the wireless pass

  • User Tracking in LMS 3.0.1

    Hello Clark, I have read the user guide for the CM 5.0 for Tracking users and also i have read the Understanding UTLite,I can't see the users login??? what can be the possible reason i have missed. Thanks

  • MASS UPLOAD OF NOTIFICATION TASK, ACTIVITY, ITEM

    Hi Experts, I have requirment to upload the notification detials in mass. Notification details containst(task details, start date and end date, user status, activity details and item overview) Is there any standarad BAPI is available or not? Regards,

  • Did not auto copy child's value to new parent row

    I have page, which have three level l) level 1 is Scroll area (group) , level 2 is Grid( members) 2) if My Scrollrow1 have two rows on his Grid(level) when I add one more row in level 1(my Scroll Arear) , it would auto copy the Grid value. what I wan

  • Executing a dos command from java in windows nt

    i need to execute the " net send" command from the command line in windows nt, from within my java program... is there any way that i can execute cmommands in the dos command shell? or rather, does anybody know a way i can send a message ( in windows