+ Reply to Thread
Results 1 to 3 of 3

Open workbooks update the main one and close the other workbooks

  1. #1
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Open workbooks update the main one and close the other workbooks

    Hi,

    What I'm tryn to do here is ask how can I on 4 different sheet open workbooks that are hyperlinked in cells so it would open the workbook on sheet 1 update the table and close the workbook.
    And then move down to the next hyperlinked cell and update the main workbook from the opened one and close it down.
    Then move to the next sheet to the next hyperlinked cell and to do the same untill it updated all the tables on all 4 sheets for all hyperlinked cells.
    I don't know how to realy ask this...

    But I have a code that has named ranges.
    Please Login or Register  to view this content.
    The hyperlinked cell is one cell above the begining of the named range.
    For example for sheet 3 Range D11:D26 the hyperlinked cell is D10
    For sheet 4 Range D32:D47 the hyperlinked cell is D31.

    The hyperlink cell is the address of where the file is on the computer/server.

    My whole code is this:
    Please Login or Register  to view this content.
    But I'm tryn to make a code like...
    Please Login or Register  to view this content.
    Any idias?

  2. #2
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Open workbooks update the main one and close the other workbooks

    My code works now so...
    I click on a cell in the named range.
    Hit the Update Table button.
    It opens the hyperlink and I select the workbook.
    It updates and then it closes the workbook.

    I know how to avoide the selecting of the workbook I'm tryn to figure out how to tell excel how to do it for every PO number

  3. #3
    Forum Contributor stojko89's Avatar
    Join Date
    05-18-2009
    Location
    Maribor, Slovenia
    MS-Off Ver
    MS Office 365
    Posts
    913

    Re: Open workbooks update the main one and close the other workbooks

    Never mind...

+ 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] Open Multiple Workbooks, Record names, Copy paste to Active Workbook, Close the Workbooks
    By vba_madness in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-24-2013, 06:09 AM
  2. How to close open workbooks from an application get open filename call ?
    By leanne2011 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2011, 10:41 PM
  3. Workbooks("").Close Crashes Excel With Mutiple Workbooks Open
    By exs120 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-27-2011, 03:24 PM
  4. Close all workbooks except for the main workbook
    By Khaos176 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-21-2009, 02:48 PM
  5. Open Close workbooks
    By bbc1 in forum Excel General
    Replies: 2
    Last Post: 08-28-2005, 07:05 AM

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