Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Changing links when protected

I currently have a workbook which is protected along with all the
worksheets. Certain cells are unprotected to allow users to enter data.

Certain users will be required to edit/change links to other workbooks.
The cells containing the links are not individually protected. However,
Excel will not allow users to edit or change the external links when
protection to the workbook/sheets is enabled. It is essential to
maintain the integrity of the workbook and sheets and therefore issuing
a password to users is not an option.

Is there a method where a user can run a macro which temporarily
removes the protection, brings up the edit/change links interface so
that the user can edit these and then the macro protects the
workbook/sheets once again before exiting the macro? The user must have
the ability to navigate in the interface window to change/edit these
links and the macro must NOT allow users to exit before protection is
replaced and must not be able to enter into any other form of editing
during the macro.

Please can anyone help????

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

In light testing, I didn't have a problem if the workbook was protected, but if
any worksheet is protected (whether it had links or not), I had trouble.

But you could unprotect each sheet, display a dialog and then reprotect all the
worksheets.

I had one sheet in this workbook example:

Option Explicit
Sub testme()
Dim myPWD As String
myPWD = "hi there"
Worksheets("sheet1").Unprotect Password:=myPWD
Application.Dialogs(xlDialogOpenLinks).Show
Worksheets("sheet1").Protect Password:=myPWD
End Sub



wrote:

I currently have a workbook which is protected along with all the
worksheets. Certain cells are unprotected to allow users to enter data.

Certain users will be required to edit/change links to other workbooks.
The cells containing the links are not individually protected. However,
Excel will not allow users to edit or change the external links when
protection to the workbook/sheets is enabled. It is essential to
maintain the integrity of the workbook and sheets and therefore issuing
a password to users is not an option.

Is there a method where a user can run a macro which temporarily
removes the protection, brings up the edit/change links interface so
that the user can edit these and then the macro protects the
workbook/sheets once again before exiting the macro? The user must have
the ability to navigate in the interface window to change/edit these
links and the macro must NOT allow users to exit before protection is
replaced and must not be able to enter into any other form of editing
during the macro.

Please can anyone help????


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Changing links when protected

Also,
It could not hurt to have error handling that proects it if any error
occurs while running the macro.

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
links in protected workbooks carourke Excel Worksheet Functions 4 December 1st 09 08:44 PM
Password Protected Links Brenda from Michigan Links and Linking in Excel 2 December 22nd 08 05:23 PM
Edit links when the sheet is protected sly Excel Discussion (Misc queries) 3 September 28th 07 02:48 AM
Links to password protected workbooks Nesta777 Excel Discussion (Misc queries) 1 July 19th 06 12:34 PM
Edit Links: Changing links on a protected worksheet Halibut68 Excel Discussion (Misc queries) 0 April 28th 06 11:03 AM


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