+ Reply to Thread
Results 1 to 2 of 2

open workbook

  1. #1
    Registered User
    Join Date
    05-29-2014
    Posts
    19

    open workbook

    Hi I have about 500 workbooks all of which are numbered with a number like 12345 I would like to put a
    Number in cell a1 and for it to open the workbook corresponding to the contents of this cell .

    Can anyone help?

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: open workbook

    Best I can suggest is using HYPERLINK.
    Format is =HYPERLINK(link location , friendly name)

    Let's say all your files are in this folder: C:\LSGC\Data\Excel files
    and that they are all .xlsx files
    In B1, use this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If A1 contains 12345, this will make B1 display '12345.xlsx', with a hyperlink to the file.

    If you have a combination of file types (.xlsx, .xlsm, .xls, etc) then you could put a drop-down in A2 of the various types then use this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Similarly, if the files are in different locations, but not too many, you could put those locations in a drop-down list in another cell and combine that in the formula:
    A1 - file number
    A2 - file type (.xlsx, etc)
    A3 - folder drop-down (put a back-slash \ after each folder name)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In this case, you probably don't need the 'friendly name' part of the hyperlink, as you'll want to see all the details.

    Hope that helps.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

+ 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. [SOLVED] VBA to Open Folder and Select workbook (not Open Workbook)
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-05-2015, 01:41 PM
  2. Macro VBA to copy and paste cells from one open workbook to another open workbook
    By bloomingcarrot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-23-2014, 07:55 PM
  3. Open Workbook if closed, keep open if open, insert password
    By jwahl16 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-09-2013, 04:09 PM
  4. macro to copy cells(Range) from an open Workbook to another open Workbook.
    By jbester in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-22-2013, 09:47 AM
  5. Macro to open a closed workbook and select copy cells into an open workbook
    By helloganesh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-10-2013, 02:00 PM
  6. [SOLVED] Macro to copy data from open workbook to next open line of new workbook
    By nhtodd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2012, 09:42 PM
  7. Save an open workbook, then open template workbook and close the saved workbook
    By ondvirg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2009, 10:20 PM

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