Consulting

Results 1 to 8 of 8

Thread: Creating Shared Workbooks destroys hyperlinks?

  1. #1
    Administrator
    2nd VP-Knowledge Base
    VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location

    Creating Shared Workbooks destroys hyperlinks?

    Hey guys,

    Does anybody have any experience with shared workbooks? I'm developing an application that everyone at my job can view, but only 3 people can edit the data inside. There is a lot of protection and I do have a bunch of VBA code inside. FYI, the code works fine with Worksheet protection and workbook protection. The workbook contains hyperlinks to other files and a lot of my code works with these. Once I share and protect the workbook all the hyperlinks get destroyed. Now, I have a button to repair / create hyperlinks, but they cannot be changed once a workbook has been "shared" (per the help docs...plus, I've tried).

    I can't just programmatically unshare and re-share the workbook because when you unshare (and unprotect) the workbook it then saves itself, and that would (probably) interrupt the code. Not to mention it wouldn't be a good idea to do that in the first place because what happens if 2 people are using the workbook when I programmatically unshare and re-share it? So that idea's out.

    Another idea is that I could modify all the code to function as if it's reading hyperlinks on the worksheet when there really are none (because I would just have them removed because what's the point of having the hyperlinks if they're destroyed?). But I was just curious to know if anyone has a reason the hyperlinks are destroyed. And by destroyed, I mean:

    Good hyperlink:
    \\Ntserver2\controlled doc's (released)\Drawings\Pending Drawings\7-Basic\7-8F00L0LZN-xx.cdr

    Bad Hyperlink:
    ../../../controlled%20doc's%20(released)/Drawings/Pending%20Drawings/7-Basic/7-8F00L0LZN-xx.cdr

    TIA




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Lookup 'Limitations of shared workbooks' in help.

    ANd if that doesn't stop you using those nasty shared workbooks, I will send Zack round to sort you out.

  3. #3
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,060
    Location
    Readng between the lines here... I'd say, that its one of your favourite objectives in Excel Bob.... but then I could be wrong.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  4. #4
    Administrator
    2nd VP-Knowledge Base VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location
    Quote Originally Posted by xld
    Lookup 'Limitations of shared workbooks' in help.
    Ok. Checked it out. It states:

    Unavailable Feature -------- Alternatives
    Insert or Change Hyperlink ------ Existing hyperlinks continue to work

    Which is not true they don't work at all. Maybe because the path name is so long and it's on a server? I don't know.

    That was a pretty big list, though. Although I could've done without almost all of that stuff in there, except this (obviously). So what other alternatives should I go with if I want to keep this as an Excel project? I'm not versed well enough with Access to create something decent (that's protected in the same way) without taking too much time.

    Quote Originally Posted by xld
    ANd if that doesn't stop you using those nasty shared workbooks, I will send Zack round to sort you out.
    Send him. You've made me curious




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

  5. #5
    Administrator
    2nd VP-Knowledge Base VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location
    Bump. Any other ideas on why this happens?


    Anyway, I've decided to develop this in MS Access. That ought to be a fun little project




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

  6. #6
    Wise decision,shared workbooks are unreliable at best.

    I've seen so many problems with them.
    Regards,

    Jan Karel Pieterse
    Excel MVP jkp-ads.com

  7. #7
    Administrator
    2nd VP-Knowledge Base VBAX Master malik641's Avatar
    Joined
    Jul 2005
    Location
    Florida baby!
    Posts
    1,533
    Location
    Thanks Jan.

    I have wondered why I haven't seen much use of Shared Workbooks. Guess they're just more of a problem than I'm willing to tackle.




    New to the forum? Check out our Introductions section to get to know some of the members here. Feel free to tell us a little about yourself as well.

  8. #8
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    Quote Originally Posted by malik641
    Send him. You've made me curious
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •