Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default How to avoid Update Links notification?

Hello experts,

In workbook A I add a worksheet using another workbook B as template, all in
VBA code.
This workbook B contains references to named regions in workbook A, which
works fine once it is loaded.

Now I have the following problem: on adding the new worksheet Excel notifies
that in workbook B there are links to external workbooks and asks if they
must be updated.
I want to get rid of this notification.
I set Application.Displayalerts to False before adding workbook B, but this
has no effect on this notification.

Thanks for your help!

Ed van Wijngaarden


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default How to avoid Update Links notification?

"E.J. van Wijngaarden" wrote in message
...
Hello experts,

In workbook A I add a worksheet using another workbook B as template, all
in
VBA code.
This workbook B contains references to named regions in workbook A, which
works fine once it is loaded.

Now I have the following problem: on adding the new worksheet Excel
notifies
that in workbook B there are links to external workbooks and asks if they
must be updated.
I want to get rid of this notification.
I set Application.Displayalerts to False before adding workbook B, but
this
has no effect on this notification.


I have the same scenario in some of my developments.

I get agound it by (in the new workbook) copying the cells with the formulas
you want to remove then pasting values. One looks like this:

Sub CreateOpsFile()
Application.ScreenUpdating = False

Sheets("Operations").Select
Sheets("Operations").Copy
Workbooks(Workbooks.Count).Activate
ActiveSheet.Unprotect

Range("A1").Copy
Range("A1").PasteSpecial Paste:=xlPasteValues

Range("B3:B7").Copy
Range("B3:B7").PasteSpecial Paste:=xlPasteValues

Range("B11:L20").Copy
Range("B11:L20").PasteSpecial Paste:=xlPasteValues

Range("B22:L23").Copy
Range("B22:L23").PasteSpecial Paste:=xlPasteValues

Application.CutCopyMode = False

Range("A1").Select

ChDir "I:\Accounting\Daily Tonnes\DailyReports"
ActiveWorkbook.SaveAs Filename:= _
"I:\Accounting\Daily Tonnes\DailyReports\" & Range("Date") &
"-Ops.xls"
ActiveWindow.Close

MsgBox "File: I:\Accouting\Daily Tonnes\DailyReports\" & Range("Date") &
"-Ops.xls has been created", , "Daily Tonnes"

Sheets("Main").Activate
Range("Date").Select
Application.ScreenUpdating = True
End Sub

In this way I preserve the local formulas such as totalling columns but
remove the formulas referring to other worksheets/workbooks.

HTH

Damo


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
Avoid Update Links dialog in Excel 2003 Ian Chappel Links and Linking in Excel 3 June 29th 07 01:11 PM
Avoid "update Links" promt in e-mailed pivot tables? Michelle B Excel Discussion (Misc queries) 2 October 23rd 06 02:54 PM
How to avoid "update links" startup prompt? [email protected] Excel Discussion (Misc queries) 8 July 23rd 06 04:20 AM
Is it possible to receive notification of a file update? spavlica09 Excel Discussion (Misc queries) 1 May 8th 06 04:50 PM
Can I avoid annoying Update Links message phillyjoe Excel Discussion (Misc queries) 2 October 29th 05 03:00 PM


All times are GMT +1. The time now is 04:27 AM.

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"