bracken752
New Member
- Joined
- Aug 15, 2013
- Messages
- 44
Hey all,
I hope you're all well and are able to help me out (yet again) for my new project (I will soon be able to help people instead of being a pain in your ***** lol).
I am using =CONCATENATE to create a URL based on the outcome of a drop down menu (For example, select "Barry Smith" from the drop down, using vlookup this finds his "ID number" and using =CONCATENATE I put this into the URL.
The issue is now that I want to use a web query and take advantage of the cell where I have used =CONCATENATE (For example Cell A1)
The webquery needs to create a new worksheet and then query the URL that is in Cell A1, I currently do this manually via macro record which is as follows:
Any ideas? I would love you long time if you could help me out here, I think my head will explode if I look at anymore VBA lol.
Kindest Regards,
JB
I hope you're all well and are able to help me out (yet again) for my new project (I will soon be able to help people instead of being a pain in your ***** lol).
I am using =CONCATENATE to create a URL based on the outcome of a drop down menu (For example, select "Barry Smith" from the drop down, using vlookup this finds his "ID number" and using =CONCATENATE I put this into the URL.
The issue is now that I want to use a web query and take advantage of the cell where I have used =CONCATENATE (For example Cell A1)
The webquery needs to create a new worksheet and then query the URL that is in Cell A1, I currently do this manually via macro record which is as follows:
Code:
ActiveWorkbook.Worksheets.Add With ActiveSheet.QueryTables.Add(Connection:="URL;http://www.REMOVED.net/RestrictedPages/UserDetail.aspx?userID=36", _
Destination:=Range("$B$2"))
.Name = "UserDetail.aspx?userID=36"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
Any ideas? I would love you long time if you could help me out here, I think my head will explode if I look at anymore VBA lol.
Kindest Regards,
JB