Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Tim Kredlo
 
Posts: n/a
Default Update dialog box

I have a workbook (WB01) whose Workbook_Open() subprocedure opens a second
workbook (WB02). Because WB01 is linked to WB02, the 'This workbook contains
links to other data sources' dialog box is presented to the user. Is there
code that I can put in the Workbook_Open subprocedure to stop this dialog box
from appearing?
  #4   Report Post  
Tim Kredlo
 
Posts: n/a
Default

Sorry for the double posting. In fact, I was surprised either of them
appeared since after hitting 'Post' I was told both times something like
"Sorry. There was a problem with your post. Somebody is being notified."
Thanks for the suggestion, now all I have to do is figure out 'how & where
to do' what you suggested. Am I correct in assuming I need to:
1. create a class module. (I named it "claAppEvents")
2. in claAppEvents 'General' code section have something like "Public
WithEvents XL As Application"
3. create a 'regular' module (I name it "modStartup")
4. in modStartup 'General' code section have something like "Dim App As New
claAppEvents"
5. In my Workbook_Open()procedure for the WB01 include "Set App.XL =
Application"
6. Set WB01 = Workbooks.Open(UpdateLinks:=0)







"Ron de Bruin" wrote:

Possible answer in your other thread

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Tim Kredlo" <Tim wrote in message ...
I have a workbook (WB01) whose Workbook_Open() subprocedure opens a second
workbook (WB02). Because WB01 is linked to WB02, the 'This workbook contains
links to other data sources' dialog box is presented to the user. Is there
code that I can put in the Workbook_Open subprocedure to stop this dialog box
from appearing?




  #5   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Hi Tim

Use it like this in the Thisworkbook module of WB01

Private Sub Workbook_Open()
Dim WB02 As Workbook
Set WB02 = Workbooks.Open("C:\Data\test1.xls", UpdateLinks:=0)
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Tim Kredlo" <Tim wrote in message ...
Sorry for the double posting. In fact, I was surprised either of them
appeared since after hitting 'Post' I was told both times something like
"Sorry. There was a problem with your post. Somebody is being notified."
Thanks for the suggestion, now all I have to do is figure out 'how & where
to do' what you suggested. Am I correct in assuming I need to:
1. create a class module. (I named it "claAppEvents")
2. in claAppEvents 'General' code section have something like "Public
WithEvents XL As Application"
3. create a 'regular' module (I name it "modStartup")
4. in modStartup 'General' code section have something like "Dim App As New
claAppEvents"
5. In my Workbook_Open()procedure for the WB01 include "Set App.XL =
Application"
6. Set WB01 = Workbooks.Open(UpdateLinks:=0)







"Ron de Bruin" wrote:

Possible answer in your other thread

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Tim Kredlo" <Tim wrote in message ...
I have a workbook (WB01) whose Workbook_Open() subprocedure opens a second
workbook (WB02). Because WB01 is linked to WB02, the 'This workbook contains
links to other data sources' dialog box is presented to the user. Is there
code that I can put in the Workbook_Open subprocedure to stop this dialog box
from appearing?








  #6   Report Post  
Tim Kredlo
 
Posts: n/a
Default

Editor will not allow me to enter as "UpdateLinks:=True"
If I enter it without the ":", it bombs out.

"Frank Kabel" wrote:

Hi
see if setting
UpdateLinks:=True
in the workbooks.open method helps

--
Regards
Frank Kabel
Frankfurt, Germany

"Tim Kredlo" <Tim schrieb im
Newsbeitrag ...
I have a workbook (WB01) whose Workbook_Open() subprocedure opens a

second
workbook (WB02). Because WB01 is linked to WB02, the 'This workbook

contains
links to other data sources' dialog box is presented to the user. Is

there
code that I can put in the Workbook_Open subprocedure to stop this

dialog box
from appearing?



  #7   Report Post  
Tim Kredlo
 
Posts: n/a
Default

Ron,

I may not have made myself clear.

I am getting the dialog box when I open the first workbook, WB01, not when
the second, WB02, is opened.

Doesn't this solution address the situation where WB02 was linked to a third
file?

By the way, everytime I post I get the same "there was a problem with your
post......" message. Is this normal?

Thanks again for your help.

Tim Kredlo


"Ron de Bruin" wrote:

Hi Tim

Use it like this in the Thisworkbook module of WB01

Private Sub Workbook_Open()
Dim WB02 As Workbook
Set WB02 = Workbooks.Open("C:\Data\test1.xls", UpdateLinks:=0)
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Tim Kredlo" <Tim wrote in message ...
Sorry for the double posting. In fact, I was surprised either of them
appeared since after hitting 'Post' I was told both times something like
"Sorry. There was a problem with your post. Somebody is being notified."
Thanks for the suggestion, now all I have to do is figure out 'how & where
to do' what you suggested. Am I correct in assuming I need to:
1. create a class module. (I named it "claAppEvents")
2. in claAppEvents 'General' code section have something like "Public
WithEvents XL As Application"
3. create a 'regular' module (I name it "modStartup")
4. in modStartup 'General' code section have something like "Dim App As New
claAppEvents"
5. In my Workbook_Open()procedure for the WB01 include "Set App.XL =
Application"
6. Set WB01 = Workbooks.Open(UpdateLinks:=0)







"Ron de Bruin" wrote:

Possible answer in your other thread

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Tim Kredlo" <Tim wrote in message ...
I have a workbook (WB01) whose Workbook_Open() subprocedure opens a second
workbook (WB02). Because WB01 is linked to WB02, the 'This workbook contains
links to other data sources' dialog box is presented to the user. Is there
code that I can put in the Workbook_Open subprocedure to stop this dialog box
from appearing?






  #8   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Doesn't this solution address the situation where WB02 was linked to a third
file?


Yes
I misunderstood you


If you use Excel 2002 or 2003 you have this option in Edit Links
Change it and save the file.



--
Regards Ron de Bruin
http://www.rondebruin.nl


"Tim Kredlo" wrote in message ...
Ron,

I may not have made myself clear.

I am getting the dialog box when I open the first workbook, WB01, not when
the second, WB02, is opened.

Doesn't this solution address the situation where WB02 was linked to a third
file?

By the way, everytime I post I get the same "there was a problem with your
post......" message. Is this normal?

Thanks again for your help.

Tim Kredlo


"Ron de Bruin" wrote:

Hi Tim

Use it like this in the Thisworkbook module of WB01

Private Sub Workbook_Open()
Dim WB02 As Workbook
Set WB02 = Workbooks.Open("C:\Data\test1.xls", UpdateLinks:=0)
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Tim Kredlo" <Tim wrote in message ...
Sorry for the double posting. In fact, I was surprised either of them
appeared since after hitting 'Post' I was told both times something like
"Sorry. There was a problem with your post. Somebody is being notified."
Thanks for the suggestion, now all I have to do is figure out 'how & where
to do' what you suggested. Am I correct in assuming I need to:
1. create a class module. (I named it "claAppEvents")
2. in claAppEvents 'General' code section have something like "Public
WithEvents XL As Application"
3. create a 'regular' module (I name it "modStartup")
4. in modStartup 'General' code section have something like "Dim App As New
claAppEvents"
5. In my Workbook_Open()procedure for the WB01 include "Set App.XL =
Application"
6. Set WB01 = Workbooks.Open(UpdateLinks:=0)







"Ron de Bruin" wrote:

Possible answer in your other thread

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Tim Kredlo" <Tim wrote in message
...
I have a workbook (WB01) whose Workbook_Open() subprocedure opens a second
workbook (WB02). Because WB01 is linked to WB02, the 'This workbook contains
links to other data sources' dialog box is presented to the user. Is there
code that I can put in the Workbook_Open subprocedure to stop this dialog box
from appearing?








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 cells within a workbook??? Chance224 Links and Linking in Excel 4 January 21st 05 06:33 PM
Update Individual Links mikxtr Excel Discussion (Misc queries) 3 January 21st 05 04:24 AM
Using the "Go To" dialog for "Copy" Fred Holmes Excel Discussion (Misc queries) 0 January 20th 05 06:40 PM
Automatic Chart Update? Mike Fox Charts and Charting in Excel 7 January 6th 05 01:29 AM
Update / don't update dialog box Tim Kredlo Excel Worksheet Functions 1 November 11th 04 04:25 PM


All times are GMT +1. The time now is 07:45 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"