Results 1 to 10 of 10

Excel 2007 : Create Hyperlinks From PDF Filenames Then Match Filenames To Rows & Columns

Threaded View

binar Create Hyperlinks From PDF... 02-12-2009, 11:00 PM
DonkeyOte Re: Create Hyperlinks From... 02-13-2009, 04:03 AM
DonkeyOte Re: Create Hyperlinks From... 02-13-2009, 04:09 AM
DonkeyOte Re: Create Hyperlinks From... 02-13-2009, 05:32 AM
binar Re: Create Hyperlinks From... 02-13-2009, 11:18 PM
  1. #1
    Registered User
    Join Date
    08-05-2006
    Posts
    63

    Create Hyperlinks From PDF Filenames Then Match Filenames To Rows & Columns

    Fellow Forum Members,
    I'm using Snagit 9 (a screen capture app) to automatically generate and feed PDF screen capture files every 30 minutes into each of the folders listed below. For one daily cycle I have a total of 1152 (48 x 24 currency pairs = 1152) new screen captures nested in the folders shown below:

    C:\Root\4x\trades\2009 forward\01 USD-CAD
    C:\Root\4x\trades\2009 forward\02 USD-JPY
    C:\Root\4x\trades\2009 forward\03 USD-CHF
    C:\Root\4x\trades\2009 forward\04 GBP-USD
    C:\Root\4x\trades\2009 forward\05 GBP-CAD
    C:\Root\4x\trades\2009 forward\06 GBP-CHF
    C:\Root\4x\trades\2009 forward\08 GBP-NZD
    C:\Root\4x\trades\2009 forward\09 CHF-JPY
    C:\Root\4x\trades\2009 forward\10 EUR-USD
    C:\Root\4x\trades\2009 forward\11 EUR-CAD
    C:\Root\4x\trades\2009 forward\12 EUR-GBP
    C:\Root\4x\trades\2009 forward\13 EUR-CHF
    C:\Root\4x\trades\2009 forward\14 EUR-JPY
    C:\Root\4x\trades\2009 forward\15 EUR-AUD
    C:\Root\4x\trades\2009 forward\17 AUD-NZD
    C:\Root\4x\trades\2009 forward\18 AUD-CAD
    C:\Root\4x\trades\2009 forward\19 AUD-USD
    C:\Root\4x\trades\2009 forward\20 AUD-CHF
    C:\Root\4x\trades\2009 forward\21 AUD-JPY
    C:\Root\4x\trades\2009 forward\22 NZD-JPY
    C:\Root\4x\trades\2009 forward\23 NZD-USD
    C:\Root\4x\trades\2009 forward\24 NZD-CHF

    Attached is an Excel matrix I have setup to help me track all these screen captures. "ROW 1" lists all of the Currency pairs and "Column A" and "Column B" contain the date and time in military format.

    When Snagit generates a screen capture it assigns an automatically generated filename in this format:

    "USD-CAD 02-11-09 15 00.pdf " (prefix field / system date field / and 15 00 is military time field for 3:00 PM).

    I’m not a VBA programmer, therefore I would be very grateful if someone can develop for me a script that will do the following:

    1. Drill down into each of the directories shown above and match the correct PDF file to the correct cell location in my Excel Matrix by using the data in PDF file name itself. The script will need to be able to recognize the prefix portion (NZD-USD) of the PDF filename to find the correct column in the Excel Matrix followed by identifying both the date and time portions of the filename to find the correct row in the Excel Matrix.

    2. Once the VBA script finds the correct cell in the Excel Matrix it then automatically generates a hyperlink to the correct PDF file that belongs in that particular cell location.

    Can a VBA script accomplish such a task? How will such a VBA script know not to re-hyperlink PDF files that already have been hyperlinked in the Excel Matrix? What VBA programing approach needs to be used so that the data making up the PDF filename is utilized by the VBA script to locate the correct cell and then perform an automatic hyperlink between the cell and the PDF file?


    Any help will be greatly appreciated. Thanks.
    Attached Files Attached Files
    Last edited by binar; 02-14-2009 at 01:50 PM.

Thread Information

Users Browsing this Thread

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

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