PC Review


Reply
Thread Tools Rate Thread

How to deal with message about links

 
 
Ragnar Midtskogen
Guest
Posts: n/a
 
      9th Sep 2004
Hello,

I have written a VB6 application that parses apart the sheets in an Excel
workbook into a number of small workbooks based on values in a column.

The spreadsheets have formulas, some of them reference other workbooks, so
whenever the program opens a sheet I get a dialog asking if I want to
update. I can get rid of this by manually replacing all the formulas with
data before running the program, but the workbook has five sheets and a
number of hidden columns, so it is a bit of work to do it. The client would
prefer if this was handled automatically.

I think I know how to replace all the formulas with data by using code, but
I can't figure out how to get around the dialog the first time I open a
sheet.

The simplest would be to have the program respond to the dialog by selecting
'No' when the program is running.

An alternate solution would be to replace all the formulas with data before
starting to process the workbook, which would require the user to respond
only once, unless I could find a way to respond automatically to the dialog.

Any help with this would be appreciated.

Ragnar


 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      9th Sep 2004
Will you be running this application only on your own pc?

If yes, you can toggle the setting (it's a user by user setting) via:

Tools|Options|Edit Tab.
There's a checkmark for "ask to update automatic links"

But this means that you suppress the question--the links still get updated.

This setting is for the individual user--and affects all their workbooks--so it
might not be useful if you have multiple users.

I don't speak the VB6, but if I were doing this via VBA, I'd create a dummy
workbook whose only purpose is to open the original workbook with links updated
(or not):

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 which opens your real workbook (with the links
set the way you want).

And xl2002 added an option that allows you to have more control:
Edit|links|startup prompt button.
check the "don't display the alert and update links"

Ragnar Midtskogen wrote:
>
> Hello,
>
> I have written a VB6 application that parses apart the sheets in an Excel
> workbook into a number of small workbooks based on values in a column.
>
> The spreadsheets have formulas, some of them reference other workbooks, so
> whenever the program opens a sheet I get a dialog asking if I want to
> update. I can get rid of this by manually replacing all the formulas with
> data before running the program, but the workbook has five sheets and a
> number of hidden columns, so it is a bit of work to do it. The client would
> prefer if this was handled automatically.
>
> I think I know how to replace all the formulas with data by using code, but
> I can't figure out how to get around the dialog the first time I open a
> sheet.
>
> The simplest would be to have the program respond to the dialog by selecting
> 'No' when the program is running.
>
> An alternate solution would be to replace all the formulas with data before
> starting to process the workbook, which would require the user to respond
> only once, unless I could find a way to respond automatically to the dialog.
>
> Any help with this would be appreciated.
>
> Ragnar


--

Dave Peterson
(E-Mail Removed)
 
Reply With Quote
 
Ragnar Midtskogen
Guest
Posts: n/a
 
      9th Sep 2004
Thank you Dave,

That was easy, I am opening the workbook with VB code using the
Workbooks.Open method (VBA is almost identical to VB6), but I did not notice
the UpdateLinks argument.

Ragnar


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
hints on how to deal with Yahoo mail and links (.NET 2.0)? Rob R. Ainscough Microsoft Dot NET Framework 1 15th Aug 2006 02:30 AM
How to deal with a mrtRATE.sys message =?Utf-8?B?TWFya1F1ZXN0aW9u?= Windows XP Help 1 6th Feb 2004 07:22 PM
ASP deal with message return from SQL Server Michelle Microsoft ASP .NET 2 26th Dec 2003 05:56 AM
HELP How do I deal with this message acheeseman@oag.state.va.us Microsoft Access 4 28th Oct 2003 09:46 PM
Re: Is this 181 GB drive on EBay a good deal or a bad deal? GMAN Storage Devices 0 24th Jun 2003 08:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:33 PM.