Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mia Mia is offline
external usenet poster
 
Posts: 101
Default edit certain hyperlink after a worksheet is protected

I have made a program to be able to log in with different login, and that
give you acces to different cells whitin the sheet. My problem is now how
just one person can get access to add?remove/edit a hyperlink. I have tried
to both unlock the sheet and the graphic object that the hyperlink is
conneted to, but nothing seems to work... Do i have to have the sheet
unprotected to be able to edit a hyperlink. I have excel 2000.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default edit certain hyperlink after a worksheet is protected

In xl2000, I believe that would be true - you have to unprotect the sheet

--
Regards,
Tom Ogilvy

"Mia" wrote in message
...
I have made a program to be able to log in with different login, and that
give you acces to different cells whitin the sheet. My problem is now how
just one person can get access to add?remove/edit a hyperlink. I have

tried
to both unlock the sheet and the graphic object that the hyperlink is
conneted to, but nothing seems to work... Do i have to have the sheet
unprotected to be able to edit a hyperlink. I have excel 2000.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 129
Default edit certain hyperlink after a worksheet is protected

Hi,

maybe i don't understand what you want exactly...
you can edit hyperlinks on a protected sheet from macro in excel 2000.
for instance,

Sub Test_EditHperlink()
Dim i As Integer

If ActiveSheet.ProtectContents Or _
ActiveSheet.ProtectDrawingObjects Then
ActiveSheet.Protect UserInterfaceOnly:=True
End If

For i = ActiveSheet.Hyperlinks.Count To 1 Step -1
With ActiveSheet.Hyperlinks(i)
Select Case .Type
Case msoHyperlinkRange
.Range.Select
Application.Dialogs(xlDialogInsertHyperlink).Show
Case msoHyperlinkShape
.Shape.Select
Application.Dialogs(xlDialogInsertHyperlink).Show
End Select
End With
Next
End Sub

--
HTH,

okaizawa


Mia wrote:
I have made a program to be able to log in with different login, and that
give you acces to different cells whitin the sheet. My problem is now how
just one person can get access to add?remove/edit a hyperlink. I have tried
to both unlock the sheet and the graphic object that the hyperlink is
conneted to, but nothing seems to work... Do i have to have the sheet
unprotected to be able to edit a hyperlink. I have excel 2000.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default edit certain hyperlink after a worksheet is protected

My problem is now how
just one person can get access to add?remove/edit a hyperlink.



doesn't sound like that person will be writing code. Certainly the OP
could implement an interface of his/her own to accept the users input and
apply that to the hyperlink. (create, delete, edit)

--
Regards,
Tom Ogilvy


"okaizawa" wrote in message
...
Hi,

maybe i don't understand what you want exactly...
you can edit hyperlinks on a protected sheet from macro in excel 2000.
for instance,

Sub Test_EditHperlink()
Dim i As Integer

If ActiveSheet.ProtectContents Or _
ActiveSheet.ProtectDrawingObjects Then
ActiveSheet.Protect UserInterfaceOnly:=True
End If

For i = ActiveSheet.Hyperlinks.Count To 1 Step -1
With ActiveSheet.Hyperlinks(i)
Select Case .Type
Case msoHyperlinkRange
.Range.Select
Application.Dialogs(xlDialogInsertHyperlink).Show
Case msoHyperlinkShape
.Shape.Select
Application.Dialogs(xlDialogInsertHyperlink).Show
End Select
End With
Next
End Sub

--
HTH,

okaizawa


Mia wrote:
I have made a program to be able to log in with different login, and

that
give you acces to different cells whitin the sheet. My problem is now

how
just one person can get access to add?remove/edit a hyperlink. I have

tried
to both unlock the sheet and the graphic object that the hyperlink is
conneted to, but nothing seems to work... Do i have to have the sheet
unprotected to be able to edit a hyperlink. I have excel 2000.



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
Edit text format in non-protected cells in protected worksheet Bonnie Excel Discussion (Misc queries) 2 April 19th 08 04:48 PM
Edit Range of a protected worksheet SnJ Excel Worksheet Functions 0 April 8th 08 11:42 AM
How do I allow users to edit links in a protected worksheet? Shere Excel Worksheet Functions 0 November 5th 07 02:53 PM
Can't Edit Contents of Protected Worksheet Phil-in-SF Excel Discussion (Misc queries) 0 May 1st 06 11:37 PM
Edit specific range in protected worksheet Rao Ratan Singh New Users to Excel 1 December 20th 05 01:13 PM


All times are GMT +1. The time now is 07:39 AM.

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"