Results 1 to 4 of 4
  1. #1
    perikillo is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Nov 2014
    Posts
    2

    Hyperlink to a specific Excel Worksheet

    hi,

    I'm trying to make hyperlinks to specific pages of a workbook to excel. If I put the hyperlink of the form as follows then works properly:
    C: \ Users \ Desktop \ test.xlsx # Sheet2!A1 -> leads me to Sheet2 document "test".

    The big problem comes when the leaves have spaces in its name, that is, if the sheet is called Sheet 2:


    C: \ Users \ Desktop \test.xlsx # Sheet 2!A1 -> does not work ...
    C: \ Users \ Desktop \ test.xlsx # 'Sheet 2'!A1 -> does not work ....

    The solution to rename the sheets is not possible ... anyone knows how to solve this problem?

    Greetings.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Maybe Allen Browne can help http://allenbrowne.com/func-GoHyperlink.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    perikillo is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Nov 2014
    Posts
    2
    I don't know how to apply this to my problem...

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    You are trying to 'make hyperlinks' - what does this mean - you want to save a hyperlink string to a hyperlink field (which is a special kind of text field)?
    What does 'does not work' mean - error message, wrong results, nothing?
    Are you trying to use FollowHyperlink to open the Excel file?

    With Allen's code the string can be saved into a regular text field and still open the file. Whether or not it will open to specific sheet I can't say, never tried.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 09-24-2013, 04:53 AM
  2. Replies: 9
    Last Post: 06-21-2013, 08:22 PM
  3. Replies: 3
    Last Post: 08-22-2012, 06:28 AM
  4. Replies: 6
    Last Post: 11-05-2011, 09:01 AM
  5. Replies: 1
    Last Post: 11-21-2010, 10:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums