+ Reply to Thread
Results 1 to 2 of 2

Opening specific embedded PDF using vba

  1. #1
    Registered User
    Join Date
    06-04-2014
    Posts
    7

    Opening specific embedded PDF using vba

    Hello,

    I am learning VBA and I have a question. I have 6 PDF files attached to a spreadsheet: Test1, Test2, Test3 and Practice1, Practice2 and Practice3. I am going to have an input box to ask the user, first, whether they want to open a Test or a Practice PDF, and then another input box asking them whether they want the number 1, 2 or 3. I will use only 2 application input boxes, one for type of PDF (Test or Practice) and one for number.

    Based on result from the input I want the right PDF to be opened. The result of the input will be something like Test+3=Test3 or Practice+2=Practice2

    I know the code to open the PDF in VBA but it uses a specific name for the PDF, “Object1” in this case.

    Please Login or Register  to view this content.
    How can I make the portion “Object1” as a variable so if the user inputs "Practice" and then number "1", the code above will open the “Practice1” PDF object?

    Thank you for your help

  2. #2
    Registered User
    Join Date
    06-04-2014
    Posts
    7

    Re: Opening specific embedded PDF using vba

    Hello. Any thoughts?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Opening A Excel Workbook with Embedded Connections Using VBA and Auto Refreshing
    By athyeh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2014, 11:01 AM
  2. Excel embedded on ppt corrupts data at opening
    By ANCHON in forum Excel General
    Replies: 0
    Last Post: 09-20-2013, 08:07 AM
  3. Replies: 1
    Last Post: 03-30-2013, 09:41 AM
  4. Opening EXCEL with a specific file opening also
    By HitTheEXCELerator in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2011, 12:51 PM
  5. Trouble opening embedded Excel in PPT
    By JS in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-29-2006, 12:10 PM
  6. Replies: 0
    Last Post: 08-03-2005, 04:05 PM
  7. [SOLVED] Problem With Opening Embedded Object After Turning On "Track Chang
    By John A in forum Excel General
    Replies: 0
    Last Post: 08-03-2005, 12:05 PM

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.6.0 RC 1