johnbird1988
Board Regular
- Joined
- Oct 6, 2009
- Messages
- 199
Hello,
I have the following code below:
This code did work, however the URL has now changed to include a # to a specific area on a page. My URL now looks something like this:
When I run the code above it replaces the spaces after the # with %20. This causes the screen not to navigate to the correct location on the page. Is there any way I can achieve this to navigate to the correct location?
Cheers,
John
I have the following code below:
Code:
Private Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
Dim URL As String
On Error GoTo error4:
URL = Me.ListBox1.Column(5, Me.ListBox1.ListIndex)
Shell "C:\Program Files\Internet Explorer\iexplore.exe " & URL, vbNormalNoFocus
Exit Sub
error4:
MsgBox ("Link unavailable")
End Sub
This code did work, however the URL has now changed to include a # to a specific area on a page. My URL now looks something like this:
Code:
URL= "http://myteamsite/sites/info_team/area/folder/folder%20Diagrams/subfolder/Items/File%20Name%20Test.xml#This is the location"
When I run the code above it replaces the spaces after the # with %20. This causes the screen not to navigate to the correct location on the page. Is there any way I can achieve this to navigate to the correct location?
Cheers,
John