Links on Spreadsheet are opening root folder when clicked!

jmpatrick

Active Member
Joined
Aug 17, 2016
Messages
477
Office Version
  1. 365
Platform
  1. Windows
Not sure what I did this morning. I have a link on my spreadsheet that point to the same cell that I use to open a UserForm. When I click the link the UserForm opens correctly...but a Windows Explorer window also opens displaying the root folder the spreadsheet resides in. How do I stop this?
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
This is happening to all users of the spreadsheet, not just me.
 
Upvote 0
Here's the code under the Sheet that has the links:

VBA Code:
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
     If Target.Range.Column = 3 Then Call OpenSearchEditFill
     If Target.Range.Column = 8 Then Call CopyShippingInstructions
     Select Case Target.Range.Address
             Case "$B$1"
             Call OpenSettings
             Case "$F$1"
             Call OpenSearchEdit
             Case "$K$1"
             Call ShowHousewrap
             Case "$R$3"
             Call SortByFloorOrderNumber
    End Select
    End Sub

When I click on any of these links, the macros run fine BUT a Windows Explorer window also opens to the root folder the spreadsheet is in. Also weird, if I click the link 10 times I get 10 explorer windows.
 
Last edited:
Upvote 0
When I create a new link on the same sheet (or another sheet in the same workbook, the same thing happens.

When I create a new workbook and create a link, it doesn't happen.
 
Upvote 0
I'm hesitant to blame the code because this wasn't happening yesterday, but here's the macro that runs when I click the link in B1 anyway:

VBA Code:
Sub OpenSettings()

    Application.DisplayAlerts = False
    Application.ScreenUpdating = False
    Application.EnableEvents = False
   
    'ThisWorkbook.Save
   
    ThisWorkbook.VBProject.VBComponents("Settings").Activate
          
    With Settings
        .StartUpPosition = 0
        .Left = Application.Left + (0.5 * Application.Width) - (0.5 * .Width)
        .Top = Application.Top + (0.5 * Application.Height) - (0.5 * .Height)
        .MultiPage1.Value = 0
        .Show
    End With
         
    Application.DisplayAlerts = True
    Application.ScreenUpdating = True
    Application.EnableEvents = True
   
End Sub

Also, this happens when I open archived saved versions from weeks ago.
 
Upvote 0
This is definitely a Insert Hyperlink "Place in This Document" issue.

If I create a hyperlink to an external page it works fine.
 
Upvote 0
It's looking like a corrupt Workbook. I'm building a new one by exporting and importing and it's working so far.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,748
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top