Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Open and Close Workbooks

I have a workbook called TMU 501.xls that is linked to another work book
called Member Lists.xls Workbook TMU 501 has drop down lists. These lists
get the info from the work book called Member Lists.xls

When I open TMU 501.xls, Member Lists.xls is opened automatically using the
code below.

Private Sub Workbook_Open()
Workbooks.Open "D:\My Documents\Ben\Work\Practice\Members List.XLS",
UpdateLinks:=True
ThisWorkbook.Activate
Sheets("TMU 501").Select
Range("F3").Select
End Sub

I have 2 questions:-

1. Is the code below correct for opening a linked work book as it seems to
work Ok in Excel 2007, but in Excel 2003 the update links message always
appears.

2. Is there any way to close Member Lists.xls automatically when I close TMU
501.xls


Thank you

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Open and Close Workbooks

Hi Tontonan

Is it working OK if you use
UpdateLinks:=3

Instead of
UpdateLinks:=True


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Tontonan" wrote in message ...
I have a workbook called TMU 501.xls that is linked to another work book
called Member Lists.xls Workbook TMU 501 has drop down lists. These lists
get the info from the work book called Member Lists.xls

When I open TMU 501.xls, Member Lists.xls is opened automatically using the
code below.

Private Sub Workbook_Open()
Workbooks.Open "D:\My Documents\Ben\Work\Practice\Members List.XLS",
UpdateLinks:=True
ThisWorkbook.Activate
Sheets("TMU 501").Select
Range("F3").Select
End Sub

I have 2 questions:-

1. Is the code below correct for opening a linked work book as it seems to
work Ok in Excel 2007, but in Excel 2003 the update links message always
appears.

2. Is there any way to close Member Lists.xls automatically when I close TMU
501.xls


Thank you

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Open and Close Workbooks

Hi Ron,

Thank you for the reply, unfortunately it does not fix the problem.

Regards Ben

"Ron de Bruin" wrote:

Hi Tontonan

Is it working OK if you use
UpdateLinks:=3

Instead of
UpdateLinks:=True


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Tontonan" wrote in message ...
I have a workbook called TMU 501.xls that is linked to another work book
called Member Lists.xls Workbook TMU 501 has drop down lists. These lists
get the info from the work book called Member Lists.xls

When I open TMU 501.xls, Member Lists.xls is opened automatically using the
code below.

Private Sub Workbook_Open()
Workbooks.Open "D:\My Documents\Ben\Work\Practice\Members List.XLS",
UpdateLinks:=True
ThisWorkbook.Activate
Sheets("TMU 501").Select
Range("F3").Select
End Sub

I have 2 questions:-

1. Is the code below correct for opening a linked work book as it seems to
work Ok in Excel 2007, but in Excel 2003 the update links message always
appears.

2. Is there any way to close Member Lists.xls automatically when I close TMU
501.xls


Thank you


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
Close all other open Workbooks CLR Excel Programming 4 December 5th 08 04:57 PM
Code to close many open workbooks MurrayB Excel Programming 13 September 18th 08 01:32 PM
close all open workbooks except the active one Dav[_4_] Excel Programming 3 April 6th 06 01:26 AM
Open Close workbooks bbc1 Excel Discussion (Misc queries) 2 August 28th 05 11:24 AM
help with macro to open and close workbooks aneurin Excel Programming 1 September 24th 03 02:14 AM


All times are GMT +1. The time now is 12:05 AM.

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

About Us

"It's about Microsoft Excel"