Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Update Links after Closing Linked File

I have built a budget worksheet that relies on linked detail sheets to update
the budget. In "Budget Summary.xls" it lists all account numbers. Each
account number has a hyperlink (using Worksheet_FollowHyperlink) that opens
the detail budget entry workbook for that account. So, if I click on
"40000", then "Detail - 40000.xls" opens.

"Budget Summary.xls" has links to the detail entry sheets to show the
monthly budgeted amounts. These update automatically when the workbook
opens. So say I open "Detail - 40000.xls" with the hyperlink. My detail
workbook has two command buttons - one saves the changes, closes detail, and
returns to "Budget Summary.xls" and one does not save changes, closes detail
and returns to "Budget Summary.xls".

Here's my problem, if a user makes changes to "Detail - 40000.xls" but
decides they don't want them and clicks the second button to not save the
changes, "Budget Summary.xls" retains the changes even though they weren't
saved. If I refresh the links, then the original saved values will return on
"Budget Summary.xls". What I would like to do is automate via VBA so that if
the user clicks on the second command button in the detail file (i.e., don't
save changes) then my "Budget Summary.xls" file will return to it's original
state. Any help would be appreciated!
--
Thanks,

Gerry O.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Update Links after Closing Linked File

I guess you could create an application event that runs each time you close a
workbook that updates links for all the existing workbooks.

If you want to try, you can start by reading Chip Pearson's notes:
http://www.cpearson.com/excel/AppEvent.aspx

I think I'd refresh the links manually.


Gerry O wrote:

I have built a budget worksheet that relies on linked detail sheets to update
the budget. In "Budget Summary.xls" it lists all account numbers. Each
account number has a hyperlink (using Worksheet_FollowHyperlink) that opens
the detail budget entry workbook for that account. So, if I click on
"40000", then "Detail - 40000.xls" opens.

"Budget Summary.xls" has links to the detail entry sheets to show the
monthly budgeted amounts. These update automatically when the workbook
opens. So say I open "Detail - 40000.xls" with the hyperlink. My detail
workbook has two command buttons - one saves the changes, closes detail, and
returns to "Budget Summary.xls" and one does not save changes, closes detail
and returns to "Budget Summary.xls".

Here's my problem, if a user makes changes to "Detail - 40000.xls" but
decides they don't want them and clicks the second button to not save the
changes, "Budget Summary.xls" retains the changes even though they weren't
saved. If I refresh the links, then the original saved values will return on
"Budget Summary.xls". What I would like to do is automate via VBA so that if
the user clicks on the second command button in the detail file (i.e., don't
save changes) then my "Budget Summary.xls" file will return to it's original
state. Any help would be appreciated!
--
Thanks,

Gerry O.


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
update linked spreadsheets w/o recreating links Petersjill Excel Worksheet Functions 1 October 11th 07 09:18 PM
How do I save 2 linked spreadsheets and update links in formulae Confused Excel User[_2_] Excel Discussion (Misc queries) 0 March 8th 07 09:37 PM
How do I save 2 linked spreadsheets and update links in formulae dlw Excel Discussion (Misc queries) 0 March 8th 07 09:36 PM
Need to disable a prompt in Excel when trying to programatically update links in a PPT Presentation that is linked to Excel shysue25 Excel Programming 0 November 3rd 05 10:02 PM
Automate open file, update links, run macro, close and save file Geoff[_7_] Excel Programming 2 August 26th 03 10:13 PM


All times are GMT +1. The time now is 08:52 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"