+ Reply to Thread
Results 1 to 2 of 2

Can't sever link when retrieving external data

  1. #1
    Registered User
    Join Date
    10-10-2006
    Posts
    68

    Can't sever link when retrieving external data

    So here's the setup:
    I have 3 workbooks.. The first two each have one sheet in them called "master sheet".. They are: 'Master Sheet', 'Dummy Sheet' and 'tracker'. "Tracker" has 2 sheets in it... "Reporter" and " copy of master sheet"

    Data is entered into the 'master sheet' workbook. I have a button setup to save the changes, which also saves the file as 'dummy sheet', then saves itself again as 'master sheet', thereby duplicating itself with a different names ( the reason for this was issues with read-only access for the master sheet)

    The 'tracker' sheet has an update button to retrieve data from the dummy sheet via 'external connection'. This works fine, except when a user goes back into the Master Sheet to make entries and save the changes, the link made by the 'tracker' sheet to the dummy sheet is still active, so that when the user tries to save the changes in the 'master sheet' (which duplicates itself as the dummy sheet), they can't because excel sees the dummy sheet as still being in use.

    2 questions:

    First, is there a way to sever the connection for a 'get external data' request? I don't want the source removed from the book, because later on I would need to update again, by using that same retrieval. I just want to know if there's a way to 'close' the dummy sheet if I'm accessing it thru an external connection.

    Secondly, if the above is not possible, it seems the only other option is to have the update button on the tracker actually OPEN the dummy sheet, copy what it needs, close the dummy sheet, and paste the info into the tracker. I know this is possible but I don't know how to code it?.

    I can post some code of the update button in the morning...


    Thanks!
    Last edited by globulous; 04-29-2015 at 03:09 AM.

  2. #2
    Registered User
    Join Date
    10-10-2006
    Posts
    68

    Re: Can't sever link when retrieving external data

    Here's some code explaining what I'm trying to do..
    Obviously I don't know what I'm doing!


    Please Login or Register  to view this content.
    There's probably a real slick way to do this in half the lines, but I'm at a loss..

    Thanks,
    Last edited by globulous; 04-29-2015 at 02:17 PM.

+ 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. Replies: 2
    Last Post: 09-29-2014, 01:14 AM
  2. dynamic link to external data
    By jtravis77 in forum Excel General
    Replies: 1
    Last Post: 07-02-2009, 04:21 PM
  3. Issues retrieving data from external sources
    By jschell in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-19-2009, 09:09 AM
  4. [SOLVED] Breaking the External Data Link
    By Carl in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2006, 01:50 AM
  5. [SOLVED] Retrieving the SQL query of the external data range
    By Pavils Jurjans in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2005, 03:06 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