• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

concatenate link in vba

Jack sparrow

New Member
hello everyone i am creating a crawler using excel VBA and here is extract of my code
Code:
Source = Web.Page(Web.Contents(""https://www.abc.com/xyz/tutorial.jsp?symbolCode=1252&symbol=TOMATINO""))

now i want to edit that code in such a way that instead of 1252 i want content of active cell and instead of TOMATINO i want content of cell right to active cell


Post Moved by Mod


.
 
Try to replace 1252 by " & ActiveCell.Value & "
TOMATINO by " & ActiveCell.offset(0,1).Value & "
Important: You will have to adjust the quotes.
 
thank you for replying Sir,
can u please be more specific about adjusting quotes
You have posted a single line of code and question is general. How do you expect a specific answer? You need to test those things yourself by changing number of quotes using suggestions or post whole code.
Code:
Source = Web.Page(Web.Contents("https://www.abc.com/xyz/tutorial.jsp?symbolCode=" & ActiveCell.Value & "symbol=" & ActiveCell.Offset(0, 1).Value))
 
Back
Top