Consulting

Results 1 to 3 of 3

Thread: Opening workbooks via shortcuts

  1. #1
    VBAX Mentor Sir Babydum GBE's Avatar
    Joined
    Mar 2005
    Location
    Cardiff, UK
    Posts
    499
    Location

    Opening workbooks via shortcuts

    Ola!

    How does one get a macro to include shortcuts to workbooks in other folders in code where its being asked to open workbooks in a given folder?

    Thanks

    BD
    Have a profound problem? Need a ridiculous solution? Post a question in Babydum's forum

  2. #2
    VBAX Master
    Joined
    Jun 2007
    Location
    East Sussex
    Posts
    1,110
    Location
    You would need to look for .lnk files too then use Workbooks.Open on those.
    Regards,
    Rory

    Microsoft MVP - Excel

  3. #3
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Have you considered using hyperlinks?
    [VBA]Sub sbd()
    ActiveWorkbook.FollowHyperlink "C:\AAA\Test.xls"
    End Sub
    [/VBA]
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

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