sanrv1f
MrExcel MVP
- Joined
- Jan 1, 2009
- Messages
- 3,474
- Office Version
- 2016
- Platform
- Windows
Sankar, how did you find this information. This thread has in part inspired me to pursue something in my research. I would be very interested in looking at the user statistics of the boards.
As one of the issues of end-user development, as I see it, is access to timely help, exactly when you need it. And at least MR Excel seems to be always "on". I may be biased but to me on-line sources and especially forums seem to be the way to go.
I used web query in a sheet to list every 100th post with its time of posting, then I extracted the time to another sheet and refresh the query to get the next 100th post,
here is the macro
Code:
Sub aaa()
Dim i As Long, url1 As String, tbl As String
Application.ScreenUpdating = False
For i = 1989100 To 1997000 Step 100
url1 = "URL;http://www.mrexcel.com/forum/showthread.php?p=" & i
tbl = """post" & i & """"
With ActiveSheet.QueryTables.Add(url1, Sheets("Sheet1").Range("A1"))
.Name = "showthread.php?p=1963685#post1963685"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlOverwriteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = tbl
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
Sheets("Sheet1").Range("Mr_xlii") = i
Sheets("Sheet1").Range("Mr_xl").Copy
ThisWorkbook.Worksheets("Sheet2").Range("A" & ThisWorkbook.Worksheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Row + 1).PasteSpecial xlPasteValues
Application.CutCopyMode = False
Next i
Application.ScreenUpdating = True
End Sub