This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub ScrapeCarDataPt4() | |
Dim IE As InternetExplorer | |
Set IE = CreateObject("InternetExplorer.Application") | |
IE.Visible = True | |
IE.Navigate "https://carousell.com/categories/cars-32/cars-for-sale-1173/" | |
Do While IE.ReadyState <> READYSTATE_COMPLETE: Loop | |
Dim CarListings As IHTMLElementCollection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub ScrapeCarDataPt3() | |
Dim IE As InternetExplorer | |
Set IE = CreateObject("InternetExplorer.Application") | |
IE.Visible = True | |
IE.Navigate "https://carousell.com/categories/cars-32/cars-for-sale-1173/" | |
Do While IE.ReadyState <> READYSTATE_COMPLETE: Loop | |
Dim CarListings As IHTMLElementCollection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub ScrapeCarDataPt2() | |
Dim IE As InternetExplorer | |
Set IE = CreateObject("InternetExplorer.Application") | |
IE.Visible = True | |
IE.Navigate "https://carousell.com/categories/cars-32/cars-for-sale-1173/" | |
Do While IE.ReadyState <> READYSTATE_COMPLETE: Loop | |
Dim CarListings As IHTMLElementCollection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub ScrapeCarDataPt1() | |
Dim IE As InternetExplorer | |
Set IE = CreateObject("InternetExplorer.Application") | |
IE.Visible = True | |
IE.Navigate "https://carousell.com/categories/cars-32/cars-for-sale-1173/" | |
Do While IE.ReadyState <> READYSTATE_COMPLETE: Loop | |
Dim CarListings As IHTMLElementCollection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Page Title</title> | |
</head> | |
<body> | |
<h1>My First Heading</h1> | |
<p>My first paragraph.</p> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub BrowseToSite() | |
Dim IE As InternetExplorer | |
Set IE = CreateObject("InternetExplorer.Application") | |
IE.Visible = True | |
IE.Navigate "http://www.google.com" | |
'Waiting for Internet Explorer to load Fully | |
Do While IE.ReadyState <> READYSTATE_COMPLETE | |
Loop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub VBAStringManipulation() | |
Dim Str1 As String | |
Str1 = "TomCruise@gmail.com" | |
Debug.Print InStr(1, Str1, "i") | |
Debug.Print InStrRev(Str1, "i") | |
Debug.Print Mid(Str1, 17, 3) | |
Debug.Print StrReverse(Str1) | |
Debug.Print Len(Str1) | |
End Sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub Sheet2RowValues() | |
Dim wb As Workbook | |
Dim ws2 As Worksheet | |
Set wb = ThisWorkbook | |
Set ws2 = wb.Sheets("Sheet2") | |
lastRow = ws2.Cells(Rows.Count, 1).End(xlUp).Row | |
For i = 1 To lastRow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub AllRowValues() | |
lastRow = Cells(Rows.Count, 1).End(xlUp).Row | |
For i = 1 To lastRow | |
Debug.Print Cells(i, 1).Value | |
Next i | |
End Sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub ForLoop() | |
For i = 1 To 10 | |
debug.print i | |
Next i | |
End Sub |
NewerOlder