+ Reply to Thread
Results 1 to 4 of 4

How do I open a file from a named cell?

  1. #1
    Forum Contributor
    Join Date
    04-13-2006
    Location
    London
    Posts
    102

    How do I open a file from a named cell?

    Hi, this will be an easy one for you!

    In my macro, I want to open a file based on a cell's contents.

    So, if A1 contained "book1.xls", how do I open the file by referencing the cell in the macro?

    Thanks in advance.

  2. #2
    Forum Contributor
    Join Date
    04-13-2006
    Location
    London
    Posts
    102
    It's OK, I've worked it out now!

  3. #3
    aidan.heritage@virgin.net
    Guest

    Re: How do I open a file from a named cell?

    workbooks.Open range("A1").value


  4. #4
    Ardus Petus
    Guest

    Re: How do I open a file from a named cell?

    Workbooks.Open Range("A1").Text

    HTH
    --
    AP

    "Cumberland" <Cumberland.28939z_1148371203.2278@excelforum-nospam.com> a
    écrit dans le message de news:
    Cumberland.28939z_1148371203.2278@excelforum-nospam.com...
    >
    > Hi, this will be an easy one for you!
    >
    > In my macro, I want to open a file based on a cell's contents.
    >
    > So, if A1 contained "book1.xls", how do I open the file by referencing
    > the cell in the macro?
    >
    > Thanks in advance.
    >
    >
    > --
    > Cumberland
    > ------------------------------------------------------------------------
    > Cumberland's Profile:
    > http://www.excelforum.com/member.php...o&userid=33445
    > View this thread: http://www.excelforum.com/showthread...hreadid=544568
    >




+ Reply to Thread

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