help on modifying a macro

congokin

Board Regular
Joined
Oct 31, 2010
Messages
74
i am working with the following sheet and need some help
Excel Workbook
AB
1HELP!!!!!!Urgenthttp://www.mrexcel.com/forum/showthread.php?t=4994
2Vlookup, not worrking as described.http://www.mrexcel.com/forum/showthread.php?t=4995
3HELP Urgent (sugar1525)http://www.mrexcel.com/forum/showthread.php?t=4996
4Vlookup, not working as described.http://www.mrexcel.com/forum/showthread.php?t=4997
5Remove data from a text string in a single cell and place inhttp://www.mrexcel.com/forum/showthread.php?t=4804
6COMBO BOX Drop List Functionhttp://www.mrexcel.com/forum/showthread.php?t=4933
Sheet1
Excel 2007

and i got the following code from mr excel podcast
http://www.youtube.com/watch?v=K9V5E_LPiKs<code>
Sub LoopThrough()
' this macro is taken from
' http://www.youtube.com/watch?v=K9V5E_LPiKs
Dim wso As Worksheet
Set wso = ActiveSheet

For Each Cell In wso.Range("B1:B5")
ActiveWorkbook.Worksheets.Add
ThisURL = "URL;" & Cell.Value

With ActiveSheet.QueryTables.Add(Connection:= _
ThisURL, Destination:=Range("$B$1"))
.Name = "f-10"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlEntirePage
.WebFormatting = xlWebFormattingNone
'xlWebFormattingAll All formatting is imported.
'xlWebFormattingNone No formatting is imported.
'xlWebFormattingRTF Rich Text Format compatible formatting is imported.
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=True
End With
Next Cell

End Sub</code>

what i need is to modify the above macro to display info on all the urls (colA) on a single master sheet instead of opening 5 worksheets as per the above code
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

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