This file contains hidden or 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 check() | |
Set Rng = ThisWorkbook.Sheets(1).Range("B1:B20") | |
Rng.RemoveDuplicates Columns:=Array(1), Header:=xlYes | |
End Sub |
This file contains hidden or 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 check() | |
Set Rng = ThisWorkbook.Sheets(1).Range("A1:C12") | |
Rng.RemoveDuplicates Columns:=Array(1, 2, 3), Header:=xlYes | |
End Sub |
This file contains hidden or 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 check() | |
Set Rng = ThisWorkbook.Sheets(1).Range("A1:D13") | |
Rng.RemoveDuplicates Columns:=Array(1, 2), Header:=xlYes | |
End Sub |
This file contains hidden or 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 check() | |
Set Rng = ThisWorkbook.Sheets(1).UsedRange | |
Rng.RemoveDuplicates Columns:=Array(1, 2), Header:=xlYes | |
End Sub |
This file contains hidden or 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 check() | |
'Determing the last column | |
LastCol = ThisWorkbook.Sheets(1).UsedRange.Columns.Count | |
'Determining the last row | |
LastRow = ThisWorkbook.Sheets(1).UsedRange.Rows.Count | |
'Determining the Range |
This file contains hidden or 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 Procedure_Scope_1() | |
Dim i As Integer | |
i = 5 | |
Debug.Print "Variable i value in Procedurecheck1 is " & i | |
End Sub | |
Sub Procedure_Scope_2() | |
Debug.Print "Variable i value in Procedurecheck2 is " & i | |
End Sub |
This file contains hidden or 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
Dim var1 As Integer | |
Sub Module_Scope_1() | |
var1 = 20 | |
Debug.Print "Value of var1 in Module_Scope_1: "; var1 | |
var1 = var1 + 15 | |
End Sub | |
Sub Module_Scope_2() |
This file contains hidden or 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
'In Module 1 | |
Option Private Module | |
Public var1 As Integer | |
Sub Public_Scope_1() | |
var1 = 20 | |
Debug.Print "Value of var1 in Public_Scope_1: "; var1 | |
var1 = var1 + 15 |
This file contains hidden or 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 iepart2() | |
Dim ie As Object | |
' | |
Set ie = CreateObject("internetexplorer.application") | |
With ie | |
.Visible = True | |
.navigate "https://www.google.co.in" |
This file contains hidden or 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 automaticformfilling() | |
Dim ie As Object | |
Set ie = CreateObject("internetexplorer.application") | |
With ie | |
.Visible = True | |
.navigate "http://newtours.demoaut.com/mercuryregister.php" | |
'Wait for loading |