Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Files on network issue - Excel 2013 destination workbook not updating automatically when cells in named range in source workbook change

$
0
0

Hello

I posted my original query on the Excel forum and the responder suggested posting on this forum. My problem follows:

I have a large Excel Workbook (main workbook) which started off life as an Excel 2003 .xls file. It pulls in ranges of data from lots of other .xls files (daughter workbooks) using named ranges. All files are accessed via a network and sit on a server. When numbers in the named ranges in any of the daughter spreadsheets those numbers updated automatically in the main workbook.

I'm now using a new Win 7 PC with Excel 2013. I cannot for the life of me get the automatic updating to work and so I end up having to close and open the workbook all the time to get it to update so that I can check my numbers are correct. I've gone through the auto updating on opening options and this is fine.  The problem is NOT related to updating on opening.

The Formulas / Calculation Options are set to Automatic. When I click on Formulas / Calculate Now or / Calculate Sheet, there is still no updating of the data in my main workbook.

I saved the main workbook as an .xlsx file but this has made no difference.

This appears to be an opening files across the network issue as, following the answer on my previous post, when both files are opened and edited on a local machine, the updates show automatically. SO frustrated by this as it all worked perfectly until I started using Excel 2013.

I found a post about this problem on this forum (argh - can't put a link in this post as my account isn't verified, but I can see how I can get this verified!), but I don't understand step 3 shown below - I need more instructions as to what to do! Can anyone simplify this for me or help me get this working across my network?

"This might be caused by the DDE links not work properly through network. You can refer to the following method to accomplish your requirement:

1. Share the source workbook.
2. Create external references in client workbook with the format like: ='\\Servername\folder\[test.xlsx]Sheet1'!$E$4
3. Use the following code to update value automatically in client workbook:

Public RunWhen AsDoublePublicConst cRunIntervalSeconds =300' five minutesPublicConst cRunWhat ="TheSub"' the name of the procedure to runSub StartTimer()
    RunWhen = Now + TimeSerial(0,0, cRunIntervalSeconds)
    Application.OnTime EarliestTime:=RunWhen, Procedure:=cRunWhat, _
        Schedule:=TrueEndSubSub TheSub()
  ActiveWorkbook.UpdateLink Name:="\\rexzhang-pc\d\test_dde_.xlsx", Type:= _
        xlExcelLinks
    StartTimer  ' Reschedule the procedureEndSub

Note: You can insert a module to the workbook, then paste the above code into the module. Replace the refresh time which I set300 seconds and update link name, then run TheSub()."

Thanks in advance.

Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>