Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default update links question

i'm not sure if the client's settings are going to be set to auto update links
or not. in the workbook, under edit/links , i set the startup prompt to "don't
display the alert and update links". it still prompts. i tried workbook open
code:

ActiveWorkbook.UpdateLink Name:=ActiveWorkbook.LinkSources

still get the prompt. how do i programmatically turn it off? the workbook is set
to read only recommended.

--


Gary



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default update links question

Excel notices the links before your code starts. So anything you do in this
workbook, won't help this workbook--but will "help" the next one.

If you really want more control over how the workbook gets opened, one way is to
build another workbook that opens the real workbook while controlling how it
should be opened.

Saved from a previous post:

Kind of like:

Option Explicit
Sub auto_open()
Workbooks.Open Filename:="c:\my documents\excel\book2.xls", UpdateLinks:=1
ThisWorkbook.Close savechanges:=False
End Sub

Then you open the dummy workbook and the links will be refreshed.
(read about that UpdateLinks argument in VBA's help.)

Then have the users open the dummy workbook.

(See help for those Updatelinks options)



Gary Keramidas wrote:

i'm not sure if the client's settings are going to be set to auto update links
or not. in the workbook, under edit/links , i set the startup prompt to "don't
display the alert and update links". it still prompts. i tried workbook open
code:

ActiveWorkbook.UpdateLink Name:=ActiveWorkbook.LinkSources

still get the prompt. how do i programmatically turn it off? the workbook is set
to read only recommended.

--

Gary


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default update links question

ok, thanks dave.

--


Gary


"Dave Peterson" wrote in message
...
Excel notices the links before your code starts. So anything you do in this
workbook, won't help this workbook--but will "help" the next one.

If you really want more control over how the workbook gets opened, one way is
to
build another workbook that opens the real workbook while controlling how it
should be opened.

Saved from a previous post:

Kind of like:

Option Explicit
Sub auto_open()
Workbooks.Open Filename:="c:\my documents\excel\book2.xls", UpdateLinks:=1
ThisWorkbook.Close savechanges:=False
End Sub

Then you open the dummy workbook and the links will be refreshed.
(read about that UpdateLinks argument in VBA's help.)

Then have the users open the dummy workbook.

(See help for those Updatelinks options)



Gary Keramidas wrote:

i'm not sure if the client's settings are going to be set to auto update
links
or not. in the workbook, under edit/links , i set the startup prompt to
"don't
display the alert and update links". it still prompts. i tried workbook open
code:

ActiveWorkbook.UpdateLink Name:=ActiveWorkbook.LinkSources

still get the prompt. how do i programmatically turn it off? the workbook is
set
to read only recommended.

--

Gary


--

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 links question?????????? I'm baffled!!! Sophie Excel Discussion (Misc queries) 4 April 1st 09 05:59 PM
Update links box gives Continue or Edit Links dialog KarenF Excel Discussion (Misc queries) 0 May 18th 07 01:17 PM
update links question George Excel Discussion (Misc queries) 2 April 10th 07 07:34 AM
Suppress Update Links dialog AND don't update links Paul Martin Excel Programming 3 August 3rd 06 01:14 AM
Excel 2003 - Update or Don't Update Links Problem Jamie Excel Programming 4 July 7th 05 02:08 PM


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