Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default update Link from protected wb OR prompt for protecting a worksheet

What I am actually trying to do is to link data from a protected workbook (so
a user can give a password in the save as tools general options menue)
into another workbook to consolidate different users information.

Unfortunately, the consolidation workbook only updates the data when you
type in the password of the data entry workbook (which makes the password
useless). Is there a way to link data with this protection mechanism?

If not, what would work for me is to use the protect worksheet function and
hide the columns before protecting it. My second question then is ...

Is there a way to write a macro doing the following:
- close a data group
- prompt a user to enter the data sheet protection password
- (probably you need to type it again to verify)
- save the document
- close the document

any help is greatly appreciated.
Andreas
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default update Link from protected wb OR prompt for protecting a worksheet

I don't think you can avoid those password prompts when you hit refresh links.

But you could provide a workbook that opens all the workbooks that send values
(you supply the password in your code to open the workbooks), then open the real
workbook.

Then close all the other workbooks.

You can record a macro when you show/hide rows/columns to get the code.

And if you just want to allow the user to be able to expand/contract those
outlines:

If you already have the outline/subtotals applied, you can protect the worksheet
in code (auto_open/workbook_open??).

Option Explicit
Sub auto_open()
With Worksheets("sheet1")
.Protect Password:="hi", userinterfaceonly:=True
.EnableOutlining = True
'.EnableAutoFilter = True
End With
End Sub

It needs to be reset each time you open the workbook. (excel doesn't remember
it after closing the workbook.)

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

=====
In fact, with that userinterfaceonly:=true portion, your code should be able to
hide/show rows without unprotecting the worksheet.

zand wrote:

What I am actually trying to do is to link data from a protected workbook (so
a user can give a password in the save as tools general options menue)
into another workbook to consolidate different users information.

Unfortunately, the consolidation workbook only updates the data when you
type in the password of the data entry workbook (which makes the password
useless). Is there a way to link data with this protection mechanism?

If not, what would work for me is to use the protect worksheet function and
hide the columns before protecting it. My second question then is ...

Is there a way to write a macro doing the following:
- close a data group
- prompt a user to enter the data sheet protection password
- (probably you need to type it again to verify)
- save the document
- close the document

any help is greatly appreciated.
Andreas


--

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
Excel 2007 data link update prompt Stampie Links and Linking in Excel 8 September 8th 09 11:41 AM
Link update prompt not working RhysPieces Excel Discussion (Misc queries) 2 October 1st 08 02:54 AM
Problem with Update Link prompt to Continue Tasha Excel Discussion (Misc queries) 0 January 30th 08 07:19 PM
Update Link When Worksheet Title is Changed yvonne a via OfficeKB.com Links and Linking in Excel 1 July 15th 05 11:27 PM
Protecting Multiple sheets with prompt for password to unprotect pkley Excel Programming 1 January 10th 04 06:46 AM


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