#1   Report Post  
Posted to microsoft.public.excel.programming
NFI NFI is offline
external usenet poster
 
Posts: 1
Default Please help

Hi all,
Can anyone help me with these two problems?

1) I've got a cells in one workbook linked to cells in
another and every time I open it an alert is displayed
advising me of this and asking me if I want to update the
links or keep the current information.
Is there anyway of automatically updateing these linked
cells, an getting rid of the alert?

2) I have two cells which are updated with the date and
time respecively, by a button on the sheet.
The sheet they are on is protected when it's activated by
userinterfaceonly:= true
However, if I then deactivate the sheet and activate it
again, I get the run time error 1004 Method 'Portect' of
object '_worksheet' failed.
This also happens if I unprotect the sheet, update the
cells and protect it again.

Any help with either of these problems would be much
appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default Please help

NFI wrote
Hi all,
Can anyone help me with these two problems?

1) I've got a cells in one workbook linked to cells in
another and every time I open it an alert is displayed
advising me of this and asking me if I want to update the
links or keep the current information.
Is there anyway of automatically updateing these linked
cells, an getting rid of the alert?


In Excel 2002 (XP) there is an option on the Edit -- Links
dialog to set the prompt. Set it to update links without asking
the user. If you are using another version you may not be able
to set this but you can set it on version 2002 and then it works
on some other versions.



2) I have two cells which are updated with the date and
time respecively, by a button on the sheet.
The sheet they are on is protected when it's activated by
userinterfaceonly:= true
However, if I then deactivate the sheet and activate it
again, I get the run time error 1004 Method 'Portect' of
object '_worksheet' failed.
This also happens if I unprotect the sheet, update the
cells and protect it again.




What I have worked out is that UserInterfaceOnly = TRUE
only works if you redo it every time you open the workbook
On the open method for the workbook you can add some code
to do this to all worksheets in that workbook.

Chrissy.



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



All times are GMT +1. The time now is 07:30 PM.

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"