Link extraction...

vaxo
4StarLounger
Posts: 432
Joined: 23 Mar 2017, 19:51

Link extraction...

Post by vaxo »

Hello friends, I need to extract link in I column... How is it possible?
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 78412
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Link extraction...

Post by HansV »

Wouldn't that simply be the formula

="https://reportal.ge/Home.aspx/Reports/Report?q="&A2&"&SystemID=1&show="&A2&"&SystemID=1&show=1"
Best wishes,
Hans

vaxo
4StarLounger
Posts: 432
Joined: 23 Mar 2017, 19:51

Re: Link extraction...

Post by vaxo »

Ok, can it be possible with vba?

User avatar
HansV
Administrator
Posts: 78412
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Link extraction...

Post by HansV »

I don't understand why you need this. You assemble the URL yourself...

Code: Select all

Sub ExtractURL()
    Dim r As Long
    Dim m As Long
    Application.ScreenUpdating = False
    m = Range("H" & Rows.Count).End(xlUp).Row
    For r = 2 To m
        Range("I" & r).Value = "'https://reportal.ge/Home.aspx/Reports/Report?q=" & Range("A2").Value & "&SystemID=1&show=" & Range("A2").Value & "&SystemID=1&show=1"
    Next r
    Application.ScreenUpdating = True
End Sub
Best wishes,
Hans

vaxo
4StarLounger
Posts: 432
Joined: 23 Mar 2017, 19:51

Re: Link extraction...

Post by vaxo »

I need to open multiple URL's on the web and I have an extension for that, but I need to insert multiple links in this program..

vaxo
4StarLounger
Posts: 432
Joined: 23 Mar 2017, 19:51

Re: Link extraction...

Post by vaxo »

The links are identical for different companies why?

User avatar
HansV
Administrator
Posts: 78412
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Link extraction...

Post by HansV »

Sorry, my mistake

Code: Select all

Sub ExtractURL()
    Dim r As Long
    Dim m As Long
    Application.ScreenUpdating = False
    m = Range("H" & Rows.Count).End(xlUp).Row
    For r = 2 To m
        Range("I" & r).Value = "'https://reportal.ge/Home.aspx/Reports/Report?q=" & _
           Range("A" & r).Value & "&SystemID=1&show=" & Range("A" & r).Value & "&SystemID=1&show=1"
    Next r
    Application.ScreenUpdating = True
End Sub
Best wishes,
Hans

vaxo
4StarLounger
Posts: 432
Joined: 23 Mar 2017, 19:51

Re: Link extraction...

Post by vaxo »

Big, big Thanks..